Skip to content

Commit a07d04d

Browse files
committed
Include a 'pre' env to test pre-releases
1 parent d236398 commit a07d04d

File tree

2 files changed

+29
-2
lines changed

2 files changed

+29
-2
lines changed

.github/workflows/main.yml

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,28 @@ jobs:
1010
strategy:
1111
fail-fast: false
1212
matrix:
13-
python: ["2.7", "3.5", "3.6", "3.7", "3.8"]
13+
tox_env: [
14+
"py27",
15+
"py35",
16+
"py36",
17+
"py37",
18+
"py38",
19+
"pre",
20+
]
21+
22+
include:
23+
- tox_env: "py27"
24+
python: "2.7"
25+
- tox_env: "py35"
26+
python: "3.5"
27+
- tox_env: "py36"
28+
python: "3.6"
29+
- tox_env: "py37"
30+
python: "3.7"
31+
- tox_env: "py38"
32+
python: "3.8"
33+
- tox_env: "pre"
34+
python: "3.7"
1435

1536
steps:
1637
- uses: actions/checkout@v1
@@ -24,7 +45,7 @@ jobs:
2445
pip install tox
2546
- name: Test
2647
run: |
27-
tox -e py
48+
tox -e ${{ matrix.tox_env }}
2849
2950
deploy:
3051

tox.ini

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ norecursedirs = .git .tox env coverage docs
88
pep8ignore =
99
docs/conf.py ALL
1010
pep8maxlinelength = 119
11+
junit_family=xunit2
1112

1213

1314
[testenv]
@@ -28,6 +29,11 @@ commands =
2829
-ra \
2930
{posargs:tests}
3031

32+
[testenv:pre]
33+
pip_pre=true
34+
usedevelop = {[testenv]usedevelop}
35+
deps = {[testenv]deps}
36+
commands = {[testenv]commands}
3137

3238
[testenv:docs]
3339
changedir = docs

0 commit comments

Comments
 (0)