Skip to content

Commit

Permalink
adapted to copy coverage file and to use pytest-cov since it provides…
Browse files Browse the repository at this point in the history
… some additional features.
  • Loading branch information
vogt31337 committed Jun 25, 2024
1 parent f858a43 commit 835ebd7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/run_tests_develop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
if: ${{ matrix.python-version == '3.9' }}
run: |
python -m pip install pytest-cov
python -m pytest --cov=./ --cov-report=xml
python -m pytest -n=auto --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
if: ${{ matrix.python-version == '3.9' }}
uses: codecov/codecov-action@v4
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/run_tests_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,9 @@ jobs:
- name: Test with pytest, Codecov and Coverage
if: ${{ matrix.python-version == '3.9' }}
run: |
python -m pip install pytest-cov coverage
coverage run -m pytest --nbmake -n=auto --cov=./ --cov-report=xml
python -m pip install pytest-cov
python -m pytest --nbmake -n=auto --cov=./ --cov-report=xml
cp ./coverage.xml ./codecov_coverage.xml
- name: Upload coverage to Codacy
if: ${{ matrix.python-version == '3.9' && matrix.os == 'ubuntu-latest'}}
env:
Expand All @@ -60,6 +61,7 @@ jobs:
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./codecov_coverage.xml
verbose: true
exclude: |
'**/test/**'
Expand Down

0 comments on commit 835ebd7

Please sign in to comment.