diff --git a/.codecov.yml b/.codecov.yml index 116041477..c5cf9ee8e 100644 --- a/.codecov.yml +++ b/.codecov.yml @@ -10,5 +10,8 @@ coverage: patch: default: target: 90 + +ignore: + - vermouth/tests comment: off diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml index 883224746..06ee1e72a 100644 --- a/.github/workflows/run_tests.yml +++ b/.github/workflows/run_tests.yml @@ -55,15 +55,16 @@ jobs: pip install -r requirements-tests.txt - name: Run pytest with codecoverage - run: | - coverage run --source=vermouth $(which pytest) -vv vermouth --hypothesis-show-statistics - coverage report --omit='*/bin/pytest' - + run: pytest vermouth --cov=vermouth --cov-report=xml --hypothesis-show-statistics - if: ${{ matrix.WITH_CODECOV }} - name: Report code coverage - run: | - codecov - + name: Upload coverage codecov + uses: codecov/codecov-action@v3 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + fail_ci_if_error: true + verbose: true + lint: runs-on: ubuntu-latest