diff --git a/.coveragerc b/.coveragerc index 10530e8c5..9f2015df3 100644 --- a/.coveragerc +++ b/.coveragerc @@ -2,9 +2,10 @@ branch = True concurrency = multiprocessing data_file = .test_reports/.coverage -source = - scilpy/ - scripts/ +relative_files = True +source_pkgs = + scilpy + scripts omit = scripts/tests/*.py scilpy/tests/**/*.py diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 740cf4692..ff4f3bf28 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -56,16 +56,15 @@ jobs: pytest --cov-report term-missing:skip-covered - name: Upload coverage reports to Codecov - uses: codecov/codecov-action@v3 - env: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + uses: codecov/codecov-action@v4 with: + token: ${{ secrets.CODECOV_TOKEN }} flags: unittests name: scilpy-unittests-${{ github.run_id }} verbose: true directory: .test_reports/ fail_ci_if_error: true - root_dir: $GITHUB_WORKSPACE/scilpy/ + plugin: pycoverage - name: Upload test reports and coverage to artifacts uses: actions/upload-artifact@v4.3.1