diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9b66364..1a144e8 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -36,6 +36,8 @@ jobs: - name: "Run tests" run: | python -m tox + python -m tox -e coverage_report + - uses: codecov/codecov-action@v3 fmt: name: Format diff --git a/.gitignore b/.gitignore index c904d91..67d54b2 100644 --- a/.gitignore +++ b/.gitignore @@ -6,5 +6,6 @@ .tox/ .venv/ build/ +coverage.xml dist/ htmlcov/ diff --git a/tox.ini b/tox.ini index bf40028..4b0ad6c 100644 --- a/tox.ini +++ b/tox.ini @@ -4,9 +4,9 @@ envlist = coverage_erase py{38, 39, 310}-all_platforms - coverage_report py{27, 35, 36, 37}-most_platforms pypy{2, 3}-most_platforms + coverage_report skip_missing_interpreters = true @@ -16,15 +16,14 @@ platform = most_platforms: cygwin|darwin|linux deps = + coverage pytest pytest-randomly pyyaml mock; python_version == "2.7" - all_platforms: coverage commands = - all_platforms: coverage run -m pytest tests/ - most_platforms: pytest tests/ + coverage run -m pytest tests/ [testenv:coverage_erase] @@ -44,6 +43,7 @@ commands_pre = commands = coverage report coverage html + coverage xml [coverage:run]