1
0
Fork 0
mirror of synced 2024-11-21 07:45:35 -05:00

Add code coverage for all platforms

This commit is contained in:
Anish Athalye 2022-12-17 15:05:04 -05:00
parent e810f42ca2
commit 8468213bc6
3 changed files with 7 additions and 4 deletions

View file

@ -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

1
.gitignore vendored
View file

@ -6,5 +6,6 @@
.tox/
.venv/
build/
coverage.xml
dist/
htmlcov/

View file

@ -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]