Skip to content

Commit 3a3498e

Browse files
committed
Fix the build tox environments.
1 parent e5a8e65 commit 3a3498e

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

tox.ini

+5-6
Original file line numberDiff line numberDiff line change
@@ -17,24 +17,23 @@ setenv =
1717
changedir = {envtmpdir}
1818
args_are_paths = false
1919
commands =
20-
{envpython} -m pip install {toxinidir}
20+
build: {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist
2121

22-
safety: {envpython} -m safety check
22+
tests,safety: {envpython} -m pip install {toxinidir}
2323

2424
tests,coverage: {envpython} -m {env:MAYBE_COVERAGE:} py.test {posargs:{toxinidir}/sphinx_json_schema_spec/}
2525
tests: {envpython} -m doctest {toxinidir}/README.rst
2626

2727
coverage: {envpython} -m coverage report --show-missing
2828
coverage: {envpython} -m coverage html --directory={envtmpdir}/htmlcov
29+
30+
safety: {envpython} -m safety check
2931
deps =
32+
build: build
3033
safety: safety
3134
tests,coverage: pytest
3235
coverage: coverage
3336

34-
[testenv:build]
35-
deps = build
36-
commands = {envpython} -m build {toxinidir} --outdir {envtmpdir}/dist
37-
3837
[testenv:bandit]
3938
deps = bandit
4039
commands = {envpython} -m bandit --recursive sphinx_json_schema_spec

0 commit comments

Comments
 (0)