@@ -20,26 +20,28 @@ When running tox on GitHub Actions, tox-gh-actions
20
20
21
21
## Examples
22
22
### Basic Example
23
- The following configuration will create 4 jobs when running the workflow on GitHub Actions.
23
+ The following configuration will create 5 jobs when running the workflow on GitHub Actions.
24
24
- On Python 2.7 job, tox runs ` py27 ` environment
25
25
- On Python 3.6 job, tox runs ` py36 ` environment
26
26
- On Python 3.7 job, tox runs ` py37 ` environment
27
27
- On Python 3.8 job, tox runs ` py38 ` and ` mypy ` environments
28
+ - On Python 3.9 job, tox runs ` py39 ` environment
28
29
29
30
#### tox-gh-actions Configuration
30
31
Add ` [gh-actions] ` section to the same file as tox's cofiguration.
31
32
32
33
If you're using ` tox.ini ` :
33
34
``` ini
34
35
[tox]
35
- envlist = py27, py36, py37, py38, mypy
36
+ envlist = py27, py36, py37, py38, py39, mypy
36
37
37
38
[gh-actions]
38
39
python =
39
40
2.7: py27
40
41
3.6: py36
41
42
3.7: py37
42
43
3.8: py38, mypy
44
+ 3.9: py39
43
45
44
46
[testenv]
45
47
...
@@ -48,14 +50,15 @@ python =
48
50
If you're using ` setup.cfg ` :
49
51
``` ini
50
52
[tox:tox]
51
- envlist = py27, py36, py37, py38, mypy
53
+ envlist = py27, py36, py37, py38, py39, mypy
52
54
53
55
[gh-actions]
54
56
python =
55
57
2.7: py27
56
58
3.6: py36
57
59
3.7: py37
58
60
3.8: py38, mypy
61
+ 3.9: py39
59
62
60
63
[testenv]
61
64
...
@@ -66,14 +69,15 @@ If you're using `pyproject.toml`:
66
69
[tool .tox ]
67
70
legacy_tox_ini = """
68
71
[tox]
69
- envlist = py27, py36, py37, py38, mypy
72
+ envlist = py27, py36, py37, py38, py39, mypy
70
73
71
74
[gh-actions]
72
75
python =
73
76
2.7: py27
74
77
3.6: py36
75
78
3.7: py37
76
79
3.8: py38, mypy
80
+ 3.9: py39
77
81
78
82
[testenv]
79
83
"""
90
94
build :
91
95
runs-on : ubuntu-latest
92
96
strategy :
93
- max-parallel : 4
97
+ max-parallel : 5
94
98
matrix :
95
- python-version : [2.7, 3.6, 3.7, 3.8]
99
+ python-version : [2.7, 3.6, 3.7, 3.8, 3.9 ]
96
100
97
101
steps :
98
102
- uses : actions/checkout@v1
0 commit comments