Skip to content

Commit

Permalink
Move json conversion into tox commands
Browse files Browse the repository at this point in the history
  • Loading branch information
tbrlpld committed Dec 28, 2023
1 parent 715fd8d commit 31795f5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 8 deletions.
3 changes: 0 additions & 3 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,3 @@ exclude_lines =

ignore_errors = True
show_missing = True

[json]
output = .coverage.json
12 changes: 7 additions & 5 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,13 @@ DB =

[testenv]
install_command = pip install -e ".[testing]" -U {opts} {packages}
# Run coverage in append mode so that we get a combined report over all environments. This can not be combined with parallel mode. This only affects local working, because each env is run on a different runner in CI.
commands = coverage run -a testmanage.py test --deprecation all {posargs: -v 2}
commands_post =
# Convert to json for CodeCov
coverage json
# Run coverage in append mode so that we get a combined report over all environments.
# This can not be combined with parallel mode.
# This only affects local working, because each env is run on a different runner in CI.
# The report is converted to json to be uploaded to codecov.
commands =
coverage run -a testmanage.py test --deprecation all {posargs: -v 2}
coverage json --data-file .coverage -o .coverage.json

basepython =
python3.8: python3.8
Expand Down

0 comments on commit 31795f5

Please sign in to comment.