summaryrefslogtreecommitdiff
path: root/tox.ini
diff options
context:
space:
mode:
authorJulian Berman <Julian@GrayVines.com>2022-12-05 21:11:06 -0500
committerGitHub <noreply@github.com>2022-12-05 21:11:06 -0500
commitc51b0d8a15d71c4133f6c83a1ad0ecd902f26012 (patch)
treeb49a9a5ca6c4445e065492e415feab14710484a3 /tox.ini
parent09b28bbe904cf45488dfe33dd16a893f335e3d97 (diff)
parenta472340574cdb697638ac973bee548140ccb2db3 (diff)
downloadjsonschema-c51b0d8a15d71c4133f6c83a1ad0ecd902f26012.tar.gz
Merge pull request #1025 from python-jsonschema/ghcoverage
Replace codecov with coverage (7)'s native markdown support
Diffstat (limited to 'tox.ini')
-rw-r--r--tox.ini22
1 files changed, 10 insertions, 12 deletions
diff --git a/tox.ini b/tox.ini
index fb815f1..0d104ce 100644
--- a/tox.ini
+++ b/tox.ini
@@ -11,16 +11,17 @@ 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
+ sh
commands =
noextra: {envpython} -m pip install --disable-pip-version-check {toxinidir}
format,perf,perfsuite: {envpython} -m pip install --disable-pip-version-check '{toxinidir}[format]'
@@ -31,14 +32,12 @@ commands =
build: {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist
- # Ignore the deprecation warning until pypa/setuptools#3276 is released
- tests,coverage,codecov: {envpython} -Werror -W"ignore:module 'sre_constants' is deprecated:DeprecationWarning" -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: sh -c "printf '### Coverage\n\n' >>$GITHUB_STEP_SUMMARY && {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}
@@ -50,10 +49,9 @@ deps =
perf,perfsuite: pyperf
- tests,coverage,codecov: twisted
+ tests,coverage,ghcoverage: twisted
- coverage,codecov: coverage
- codecov: codecov
+ coverage,ghcoverage: coverage>=7.0.0b1
[testenv:bandit]
deps = bandit