@@ -43,37 +43,32 @@ jobs:
43
43
- name : Lint
44
44
run : check/pylint
45
45
pytest :
46
- name : Pytest Ubuntu
47
- runs-on : ubuntu-18.04
46
+ name : Pytest
47
+ runs-on : ${{ matrix.os }}
48
+ strategy :
49
+ matrix :
50
+ # On each operating system, check latest version of python and cirq
51
+ os : [ ubuntu-latest, macos-latest, windows-latest ]
52
+ python-version : [ '3.9' ]
53
+ cirq-version : [ '~=0.13.0' ]
54
+ # Also check least-supported versions (linux only)
55
+ include :
56
+ - os : ubuntu-latest
57
+ python-version : 3.8
58
+ cirq-version : ' ~=0.12.0'
59
+ fail-fast : false
48
60
steps :
49
- - uses : actions/checkout@v1
50
- - uses : actions/setup-python@v1
61
+ - uses : actions/checkout@v2
62
+ - uses : actions/setup-python@v2
51
63
with :
52
- python-version : ' 3.6'
53
- architecture : ' x64'
64
+ python-version : ${{ matrix.python-version }}
54
65
- name : Install requirements
55
66
run : |
56
- pip install -r requirements.txt
57
67
pip install -r dev_tools/conf/pip-list-dev-tools.txt
58
- git config --global user.name ${GITHUB_ACTOR}
68
+ pip install cirq-core${{matrix.cirq-version}} cirq-google${{matrix.cirq-version}} -r requirements.txt
59
69
- name : Pytest check
60
- run : check/pytest --actually-quiet
61
- pytest37 :
62
- name : Pytest Ubuntu
63
- runs-on : ubuntu-18.04
64
- steps :
65
- - uses : actions/checkout@v1
66
- - uses : actions/setup-python@v1
67
- with :
68
- python-version : ' 3.7'
69
- architecture : ' x64'
70
- - name : Install requirements
71
- run : |
72
- pip install -r requirements.txt
73
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
74
- git config --global user.name ${GITHUB_ACTOR}
75
- - name : Pytest check
76
- run : check/pytest --actually-quiet
70
+ run : check/pytest
71
+ shell : bash
77
72
coverage :
78
73
name : Coverage check
79
74
runs-on : ubuntu-18.04
90
85
git config --global user.name ${GITHUB_ACTOR}
91
86
- name : Coverage check
92
87
run : check/pytest-and-incremental-coverage --actually-quiet
93
- windows :
94
- name : Pytest Windows
95
- runs-on : windows-latest
96
- steps :
97
- - uses : actions/checkout@v1
98
- - uses : actions/setup-python@v1
99
- with :
100
- python-version : ' 3.6'
101
- architecture : ' x64'
102
- - name : Install requirements
103
- run : |
104
- pip install -r requirements.txt
105
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
106
- - name : Pytest Windows
107
- run : check/pytest
108
- shell : bash
109
- macos :
110
- name : Pytest MacOS
111
- runs-on : macos-10.15
112
- steps :
113
- - uses : actions/checkout@v1
114
- - uses : actions/setup-python@v1
115
- with :
116
- python-version : ' 3.6'
117
- architecture : ' x64'
118
- - name : Install requirements
119
- run : |
120
- pip install -r requirements.txt
121
- pip install -r dev_tools/conf/pip-list-dev-tools.txt
122
- git config --global user.name ${GITHUB_ACTOR}
123
- - name : Pytest check
124
- run : check/pytest
0 commit comments