diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 9e0659e..92cd721 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -5,30 +5,24 @@ jobs: test: runs-on: ubuntu-latest steps: - - name: Debug environment - run: | - echo "=== Current directory ===" + - run: | pwd - echo "" - echo "=== Directory contents ===" ls -la - echo "" - echo "=== Looking for requirements.txt ===" - find . -name "requirements.txt" 2>/dev/null || echo "Not found" - echo "" - echo "=== Looking for tests directory ===" - find . -type d -name "tests" 2>/dev/null || echo "Not found" - - name: Setup Python + - name: Install dependencies run: | - python3 -m pip install --upgrade pip 2>&1 + pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov - - name: Check Python + - name: List files run: | - which python3 - python3 --version + ls -la man_card/ 2>/dev/null || ls -la */ 2>/dev/null || ls -la - - name: Install and test + - name: Run tests if tests dir exists run: | - pip3 install click fpdf2 Pillow rich python-dotenv pytest pytest-cov 2>&1 - echo "Installation completed" \ No newline at end of file + if [ -d tests ]; then + pytest tests -v + elif [ -d */tests ]; then + pytest */tests -v + else + echo "No tests directory found" + fi \ No newline at end of file