ci: re-enable coverage artifact upload via native Gitea runner (v3)
This commit is contained in:
@@ -50,10 +50,14 @@ jobs:
|
|||||||
pip install -r backend/requirements.txt
|
pip install -r backend/requirements.txt
|
||||||
|
|
||||||
- name: Run tests
|
- name: Run tests
|
||||||
run: pytest tests/ --cov=backend --cov-report=term -q
|
run: pytest tests/ --cov=backend --cov-report=xml --cov-report=term -q
|
||||||
# Coverage report is printed in console (--cov-report=term).
|
|
||||||
# XML artifact upload (actions/upload-artifact@v4) not available
|
- name: Upload coverage artifact
|
||||||
# on self-hosted Gitea runner without GitHub internet access.
|
uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: coverage-report
|
||||||
|
path: coverage.xml
|
||||||
|
retention-days: 30
|
||||||
|
|
||||||
# ── Security scan ─────────────────────────────────────────────────
|
# ── Security scan ─────────────────────────────────────────────────
|
||||||
security:
|
security:
|
||||||
|
|||||||
Reference in New Issue
Block a user