Skip to content

Commit

Permalink
Replace codecov with coverage (7)'s native markdown support.
Browse files Browse the repository at this point in the history
  • Loading branch information
Julian committed Dec 5, 2022
1 parent 5606f4c commit f4dddb7
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 36 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,8 @@ jobs:
toxenv: py311-formatnongpl-build
- name: "3.11"
toxenv: py311-formatnongpl-tests
- name: "3.11"
toxenv: py311-format-ghcoverage
- name: "3.11"
toxenv: docs-dirhtml
- name: "3.11"
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/coverage.yml

This file was deleted.

20 changes: 9 additions & 11 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,14 @@ skipsdist = True

[testenv]
changedir = {envtmpdir}
passenv = CODECOV* CI PYTHONUTF8
passenv = CI GITHUB_STEP_SUMMARY PYTHONUTF8
setenv =
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json

coverage,codecov: MAYBE_COVERAGE = coverage run -m
coverage,codecov: COVERAGE_RCFILE={toxinidir}/.coveragerc
coverage,codecov: COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
coverage,codecov: COVERAGE_FILE={envtmpdir}/coverage-data
coverage,ghcoverage: MAYBE_COVERAGE = coverage run -m
coverage,ghcoverage: COVERAGE_RCFILE={toxinidir}/.coveragerc
coverage,ghcoverage: COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
coverage,ghcoverage: COVERAGE_FILE={envtmpdir}/coverage-data
whitelist_externals =
mkdir
commands =
Expand All @@ -31,13 +31,12 @@ commands =

build: {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist

tests,coverage,codecov: {envpython} -Werror -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
tests,coverage,ghcoverage: {envpython} -Werror -m {env:MAYBE_COVERAGE:} twisted.trial {posargs:jsonschema}
tests: {envpython} -m doctest {toxinidir}/README.rst

coverage: {envpython} -m coverage report --show-missing
coverage: {envpython} -m coverage html --directory={envtmpdir}/htmlcov
codecov: {envpython} -m coverage xml -o {envtmpdir}/coverage.xml
codecov: codecov --required --disable gcov --file {envtmpdir}/coverage.xml
ghcoverage: {envpython} -m coverage report --format=markdown --show-missing >> "$GITHUB_STEP_SUMMARY"

perf: {envpython} {toxinidir}/jsonschema/benchmarks/issue232.py --inherit-environ JSON_SCHEMA_TEST_SUITE {posargs:--output {envtmpdir}/bench-issue232.json}
perfsuite: {envpython} {toxinidir}/jsonschema/benchmarks/json_schema_test_suite.py --inherit-environ JSON_SCHEMA_TEST_SUITE {posargs:--output {envtmpdir}/bench-json_schema_test_suite.json}
Expand All @@ -49,10 +48,9 @@ deps =

perf,perfsuite: pyperf

tests,coverage,codecov: twisted
tests,coverage: twisted

coverage,codecov: coverage
codecov: codecov
coverage: coverage>=7.0.0b1

[testenv:bandit]
deps = bandit
Expand Down

0 comments on commit f4dddb7

Please sign in to comment.