Skip to content

Commit

Permalink
Add coverage commands to existing test job
Browse files Browse the repository at this point in the history
  • Loading branch information
aimiktena committed Jun 8, 2024
1 parent 8e9bb17 commit eafad56
Showing 1 changed file with 10 additions and 11 deletions.
21 changes: 10 additions & 11 deletions .github/workflows/github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,16 @@ jobs:
- name: test
env:
TOXPYTHON: '${{ matrix.toxpython }}'
run: >
tox -e ${{ matrix.tox_env }} -v
run: |
coverage run -m unittest
coverage xml -o coverage.xml
- uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: true

deploy_docs:
name: Deploy docs to GitHub Pages
Expand Down Expand Up @@ -162,15 +170,6 @@ jobs:
echo "::warning title=Invalid file permissions automatically fixed::$line"
done
- name: Generate Report
run: |
coverage run -m unittest
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}

- name: upload artifact
uses: actions/upload-pages-artifact@v3

Expand Down

0 comments on commit eafad56

Please sign in to comment.