diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index df24f8f..21eadef 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -50,10 +50,14 @@ jobs: pip install -r backend/requirements.txt - name: Run tests - run: pytest tests/ --cov=backend --cov-report=term -q - # Coverage report is printed in console (--cov-report=term). - # XML artifact upload (actions/upload-artifact@v4) not available - # on self-hosted Gitea runner without GitHub internet access. + run: pytest tests/ --cov=backend --cov-report=xml --cov-report=term -q + + - name: Upload coverage artifact + uses: actions/upload-artifact@v3 + with: + name: coverage-report + path: coverage.xml + retention-days: 30 # ── Security scan ───────────────────────────────────────────────── security: