Skip to content

Commit 8516031

Browse files
committed
tox.ini quoting seems to have changed too.
1 parent 4e0379c commit 8516031

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/coverage.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
set -e
2+
printf '### Coverage\n\n' >>$GITHUB_STEP_SUMMARY
3+
"$1" -m coverage report --format=markdown --show-missing >>$GITHUB_STEP_SUMMARY

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
[tox]
2+
min_version = 4.0.7
23
envlist =
34
py{37,38,39,310,311,py3}-{noextra,format,formatnongpl}-{build,tests}
45
{noextra,format,formatnongpl}-audit
@@ -15,7 +16,7 @@ passenv = CI, GITHUB_STEP_SUMMARY, PYTHONUTF8
1516
setenv =
1617
JSON_SCHEMA_TEST_SUITE = {toxinidir}/json
1718

18-
coverage,ghcoverage: MAYBE_COVERAGE = coverage run -m
19+
coverage,ghcoverage: MAYBE_COVERAGE=coverage run -m
1920
coverage,ghcoverage: COVERAGE_RCFILE={toxinidir}/.coveragerc
2021
coverage,ghcoverage: COVERAGE_DEBUG_FILE={envtmpdir}/coverage-debug
2122
coverage,ghcoverage: COVERAGE_FILE={envtmpdir}/coverage-data
@@ -37,7 +38,7 @@ commands =
3738

3839
coverage: {envpython} -m coverage report --show-missing
3940
coverage: {envpython} -m coverage html --directory={envtmpdir}/htmlcov
40-
ghcoverage: sh -c "printf '### Coverage\n\n' >>$GITHUB_STEP_SUMMARY && {envpython} -m coverage report --format=markdown --show-missing >>$GITHUB_STEP_SUMMARY"
41+
ghcoverage: sh {toxinidir}/.github/coverage.sh "{envpython}"
4142

4243
perf: {envpython} {toxinidir}/jsonschema/benchmarks/issue232.py --inherit-environ JSON_SCHEMA_TEST_SUITE {posargs:--output {envtmpdir}/bench-issue232.json}
4344
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}

0 commit comments

Comments
 (0)