Add code coverage for all platforms
This commit is contained in:
parent
e810f42ca2
commit
8468213bc6
3 changed files with 7 additions and 4 deletions
2
.github/workflows/build.yml
vendored
2
.github/workflows/build.yml
vendored
|
@ -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
1
.gitignore
vendored
|
@ -6,5 +6,6 @@
|
|||
.tox/
|
||||
.venv/
|
||||
build/
|
||||
coverage.xml
|
||||
dist/
|
||||
htmlcov/
|
||||
|
|
8
tox.ini
8
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]
|
||||
|
|
Loading…
Reference in a new issue