feat: add codecov upload

This commit is contained in:
Gergő Jedlicska
2025-01-20 21:36:12 +01:00
parent 513594c49f
commit 970cf62e50
+8 -2
View File
@@ -43,8 +43,14 @@ jobs:
run: docker compose up -d
- name: Run tests
run: poetry run pytest --cov --cov-report xml:reports/coverage.xml --junitxml=reports/test-results.xml
run: uv run pytest --cov --cov-report xml:reports/coverage.xml --junitxml=reports/test-results.xml
- uses: codecov/codecov-action@v5
if: matrix.python-version == 3.13
with:
fail_ci_if_error: true # optional (default = false)
files: ./reports/test-results.xml # optional
token: ${{ secrets.CODECOV_TOKEN }}
# do some more stuff here
- name: Minimize uv cache
run: uv cache prune --ci