9
9
pull_request :
10
10
branches :
11
11
- " *"
12
+ schedule :
13
+ # Daily at 05:47
14
+ - cron : ' 47 5 * * *'
12
15
13
16
jobs :
14
17
test :
15
18
name : ${{ matrix.os.name }} ${{ matrix.python.name }} ${{ matrix.reactor.name }}
16
19
runs-on : ${{ matrix.os.runs-on }}
20
+ container : ${{ matrix.os.container[matrix.python.docker] }}
17
21
strategy :
18
22
fail-fast : false
19
23
matrix :
20
24
os :
21
25
- name : Linux
22
26
runs-on : ubuntu-latest
27
+ python_platform : linux
28
+ container :
29
+ 2.7 : docker://python:2.7-buster
30
+ 3.5 : docker://python:3.5-buster
31
+ 3.6 : docker://python:3.6-buster
32
+ 3.7 : docker://python:3.7-buster
33
+ 3.8 : docker://python:3.8-buster
23
34
- name : Windows
24
35
runs-on : windows-latest
36
+ python_platform : win32
25
37
- name : macOS
26
38
runs-on : macos-latest
39
+ python_platform : darwin
27
40
python :
28
41
- name : CPython 2.7
29
42
tox : py27
30
43
action : 2.7
44
+ docker : 2.7
31
45
- name : CPython 3.5
32
46
tox : py35
33
47
action : 3.5
48
+ docker : 3.5
34
49
- name : CPython 3.6
35
50
tox : py36
36
51
action : 3.6
52
+ docker : 3.6
37
53
- name : CPython 3.7
38
54
tox : py37
39
55
action : 3.7
56
+ docker : 3.7
40
57
- name : CPython 3.8
41
58
tox : py38
42
59
action : 3.8
60
+ docker : 3.8
43
61
reactor :
44
62
- name : default
45
63
tox : default
64
+ dependencies : default
46
65
- name : Qt5
47
66
tox : qt5
67
+ dependencies : qt5
48
68
- name : asyncio
49
69
tox : asyncio
70
+ dependencies : asyncio
50
71
exclude :
51
72
- python :
52
73
tox : py27
@@ -59,10 +80,32 @@ jobs:
59
80
steps :
60
81
- uses : actions/checkout@v2
61
82
- name : Set up ${{ matrix.python.name }}
62
- uses : actions/setup-python@v1
83
+ if : ${{ job.container == '' }}
84
+ uses : actions/setup-python@v2
63
85
with :
64
86
python-version : ${{ matrix.python.action }}
65
87
architecture : x64
88
+ - name : Report Python information
89
+ shell : bash
90
+ run : |
91
+ python -c 'import sys; print(sys.version)'
92
+ echo
93
+ echo " <=======>"
94
+ echo
95
+ pip --version
96
+ echo
97
+ echo " <=======>"
98
+ echo
99
+ pip list --no-python-version-warning
100
+ echo
101
+ echo " <=======>"
102
+ echo
103
+ pip freeze --all --no-python-version-warning
104
+ - name : Install Linux Qt5 dependencies
105
+ if : matrix.os.python_platform == 'linux' && matrix.reactor.dependencies == 'qt5'
106
+ run : |
107
+ apt-get update --yes
108
+ apt-get install --yes libgl1
66
109
- name : Install
67
110
run : |
68
111
pip install tox
80
123
steps :
81
124
- uses : actions/checkout@v2
82
125
- name : Set up Python ${{ matrix.python.dotted }}
83
- uses : actions/setup-python@v1
126
+ uses : actions/setup-python@v2
84
127
with :
85
128
python-version : ${{ matrix.python.dotted }}
86
129
architecture : x64
0 commit comments