diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index cfb17e1..5f71092 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -4,40 +4,23 @@ on: push: branches: - main - pull_request: - branches: - - main jobs: test: runs-on: ubuntu-latest steps: - - name: Checkout code - uses: actions/checkout@v4 + - uses: actions/checkout@v4 - - name: Set up Python + - name: Setup Python uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Debug - List files - run: | - ls -la - ls -la tests/ 2>/dev/null || echo "No tests/ directory" + - name: Verify Python + run: python --version - - name: Debug - List Python files - run: | - find . -name "*.py" -type f | head -20 + - name: Install pytest + run: pip install pytest - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install click rich pytest - - - name: Run tests with verbose output - run: | - python -m pytest tests/ -v --tb=short 2>&1 || true - - - name: Check pytest return code - run: | - python -m pytest tests/ -v --tb=short + - name: Run pytest + run: pytest tests/ -v || exit 1