@@ -4,72 +4,71 @@ on: [push, pull_request]
4
4
5
5
jobs :
6
6
tests :
7
- runs-on : ubuntu-18 .04
7
+ runs-on : ubuntu-20 .04
8
8
strategy :
9
9
fail-fast : false
10
10
matrix :
11
- python-version : [2.7, 3.4, 3. 5, 3.6, 3.7, 3.8, 3.9, "3.10"]
11
+ python-version : [2.7, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 3.11 ]
12
12
13
13
steps :
14
- - uses : actions/checkout@v2
14
+ - uses : actions/checkout@v3
15
15
16
16
- name : Set up Python ${{ matrix.python-version }}
17
- uses : actions/setup-python@v2
17
+ uses : actions/setup-python@v4
18
18
with :
19
19
python-version : ${{ matrix.python-version }}
20
20
21
- - name : Show Python version
22
- run : python -V
23
-
24
- - name : Set TOXENV based on Python version
25
- run : python -c 'import sys; print("TOXENV=py%d%d" % (sys.version_info.major, sys.version_info.minor))' | tee -a $GITHUB_ENV
26
-
27
21
- name : Install dependencies
28
22
run : pip install virtualenv tox
29
23
24
+ - name : Set variable for TOXENV based on Python version
25
+ id : toxenv
26
+ run : python -c 'import sys; print("TOXENV=py%d%d" % (sys.version_info.major, sys.version_info.minor))' | tee -a $GITHUB_OUTPUT
27
+
30
28
- name : Run the unit tests
31
- run : tox
29
+ run : TOXENV=${{steps.toxenv.outputs.TOXENV}} tox
32
30
33
31
- name : Run the end-to-end tests
34
- run : END_TO_END=1 tox
32
+ run : TOXENV=${{steps.toxenv.outputs.TOXENV}} END_TO_END=1 tox
35
33
36
34
coverage :
37
- runs-on : ubuntu-18 .04
35
+ runs-on : ubuntu-20 .04
38
36
strategy :
39
37
fail-fast : false
40
38
matrix :
41
- python-version : [2.7, 3.7 ]
39
+ python-version : [2.7, 3.8 ]
42
40
43
41
steps :
44
- - uses : actions/checkout@v2
42
+ - uses : actions/checkout@v3
45
43
46
44
- name : Set up Python ${{ matrix.python-version }}
47
- uses : actions/setup-python@v2
45
+ uses : actions/setup-python@v4
48
46
with :
49
47
python-version : ${{ matrix.python-version }}
50
48
51
49
- name : Install dependencies
52
50
run : pip install virtualenv tox
53
51
54
- - name : Set TOXENV based on Python version
55
- run : python -c 'import sys; e="cover" if sys.version_info.major == 2 else "cover3"; print("TOXENV=%s" % e)' | tee -a $GITHUB_ENV
52
+ - name : Set variable for TOXENV based on Python version
53
+ id : toxenv
54
+ run : python -c 'import sys; e="cover" if sys.version_info.major == 2 else "cover3"; print("TOXENV=%s" % e)' | tee -a $GITHUB_OUTPUT
56
55
57
56
- name : Run unit test coverage
58
- run : tox
57
+ run : TOXENV=${{steps.toxenv.outputs.TOXENV}} tox
59
58
60
59
docs :
61
- runs-on : ubuntu-18 .04
60
+ runs-on : ubuntu-20 .04
62
61
63
62
steps :
64
- - uses : actions/checkout@v2
63
+ - uses : actions/checkout@v3
65
64
66
65
- name : Set up Python ${{ matrix.python-version }}
67
- uses : actions/setup-python@v2
66
+ uses : actions/setup-python@v4
68
67
with :
69
68
python-version : " 3.8"
70
69
71
70
- name : Install dependencies
72
- run : pip install virtualenv tox
71
+ run : pip install virtualenv tox>=4.0.0
73
72
74
73
- name : Build the docs
75
74
run : TOXENV=docs tox
0 commit comments