Skip to content

Commit 8241827

Browse files
committed
Add publish env to tox
1 parent cd028f4 commit 8241827

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

tox.ini

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ envlist =
77
py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
88
py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
99
py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.71, 0.7x}
10+
publish
1011
static
1112

1213
[gh-actions]
1314
python =
1415
3.5: py35-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
1516
3.6: py36-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
1617
3.7: py37-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.50, 0.5x, 0.60, 0.6x, 0.70, 0.7x}
17-
3.8: py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.71, 0.7x}, static
18+
3.8: py38-pytest{3.5, 3.x, 4.0, 4.x, 5.0, 5.x}-mypy{0.71, 0.7x}, publish, static
1819

1920
[testenv]
2021
deps =
@@ -88,6 +89,15 @@ deps =
8889
pytest-randomly ~= 2.1.1
8990
commands = py.test -p no:mypy --cov pytest_mypy --cov-fail-under 100 --cov-report term-missing {posargs:-n auto} tests
9091

92+
[testenv:publish]
93+
passenv = TWINE_*
94+
deps =
95+
pep517 ~= 0.8.0
96+
twine ~= 3.2.0
97+
commands =
98+
{envpython} -m pep517.build --out-dir {distdir} .
99+
twine {posargs:check} {distdir}/*
100+
91101
[testenv:static]
92102
deps =
93103
bandit ~= 1.6.2

0 commit comments

Comments
 (0)