diff --git a/.github/workflows/sipa-ci .yml b/.github/workflows/sipa-ci.yml similarity index 87% rename from .github/workflows/sipa-ci .yml rename to .github/workflows/sipa-ci.yml index 427fc562..ea6788f1 100644 --- a/.github/workflows/sipa-ci .yml +++ b/.github/workflows/sipa-ci.yml @@ -58,8 +58,16 @@ jobs: run: > pytest --junitxml=junit/test-results.xml + --cov --cov-report=xml:cov/cov-results.xml - name: Publish Test Report uses: mikepenz/action-junit-report@v3 if: always() # always run even if the previous step fails with: report_paths: 'junit/test-*.xml' + - name: Upload results to Codecov + uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + disable_search: true + files: ./cov/cov-results.xml + verbose: true diff --git a/build/requirements/requirements_testing.txt b/build/requirements/requirements_testing.txt index d8f233e9..d23ebcb5 100644 --- a/build/requirements/requirements_testing.txt +++ b/build/requirements/requirements_testing.txt @@ -5,4 +5,5 @@ pycodestyle~=2.4.0 mypy~=0.960 sphinx~=1.8.4 pytest~=7.4.3 +pytest-cov~=2.10.1 time_machine~=2.13.0