Skip to content

Commit

Permalink
add coverage report
Browse files Browse the repository at this point in the history
  • Loading branch information
simontorres committed Jul 26, 2024
1 parent 95878c6 commit 05121f1
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ jobs:
os: ubuntu-latest
python: '3.12'
toxenv: py312-test

- name: Python 3.12 with Coverage
os: ubuntu-latest
python: '3.12'
toxenv: py312-test-cov

- name: Python 3.10
os: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ minversion = 4.4.12
description = run the tests with pytest
package = wheel
wheel_build_env = .pkg

deps =
pytest>=6
pytest-cov
mock
cov: pytest-cov

commands =
pytest {tty:--color=yes} {posargs}
cov: pytest {tty:--color=yes} --cov goodman_pipeline {posargs}
cov: coverage xml -o '{toxinidir}/coverage.xml'
html: coverage html -d .coverage_html

0 comments on commit 05121f1

Please sign in to comment.