Skip to content

Commit 0d63ede

Browse files
committed
Update test config. Reapply some of the changes from PR567 to the right file (the template).
1 parent f3d8d83 commit 0d63ede

File tree

2 files changed

+78
-58
lines changed

2 files changed

+78
-58
lines changed

.github/workflows/test.yml

+64-44
Original file line numberDiff line numberDiff line change
@@ -60,131 +60,149 @@ jobs:
6060
toxpython: 'python3.11'
6161
tox_env: 'docs'
6262
os: 'ubuntu-latest'
63-
- name: 'py37-pytest71-xdist250-coverage64 (ubuntu)'
63+
- name: 'py37-pytest73-xdist330-coverage72 (ubuntu)'
6464
python: '3.7'
6565
toxpython: 'python3.7'
6666
python_arch: 'x64'
67-
tox_env: 'py37-pytest71-xdist250-coverage64'
67+
tox_env: 'py37-pytest73-xdist330-coverage72'
6868
os: 'ubuntu-latest'
69-
- name: 'py37-pytest71-xdist250-coverage64 (windows)'
69+
- name: 'py37-pytest73-xdist330-coverage72 (windows)'
7070
python: '3.7'
7171
toxpython: 'python3.7'
7272
python_arch: 'x64'
73-
tox_env: 'py37-pytest71-xdist250-coverage64'
73+
tox_env: 'py37-pytest73-xdist330-coverage72'
7474
os: 'windows-latest'
75-
- name: 'py37-pytest71-xdist250-coverage64 (macos)'
75+
- name: 'py37-pytest73-xdist330-coverage72 (macos)'
7676
python: '3.7'
7777
toxpython: 'python3.7'
7878
python_arch: 'x64'
79-
tox_env: 'py37-pytest71-xdist250-coverage64'
79+
tox_env: 'py37-pytest73-xdist330-coverage72'
8080
os: 'macos-latest'
81-
- name: 'py38-pytest71-xdist250-coverage64 (ubuntu)'
81+
- name: 'py38-pytest73-xdist330-coverage72 (ubuntu)'
8282
python: '3.8'
8383
toxpython: 'python3.8'
8484
python_arch: 'x64'
85-
tox_env: 'py38-pytest71-xdist250-coverage64'
85+
tox_env: 'py38-pytest73-xdist330-coverage72'
8686
os: 'ubuntu-latest'
87-
- name: 'py38-pytest71-xdist250-coverage64 (windows)'
87+
- name: 'py38-pytest73-xdist330-coverage72 (windows)'
8888
python: '3.8'
8989
toxpython: 'python3.8'
9090
python_arch: 'x64'
91-
tox_env: 'py38-pytest71-xdist250-coverage64'
91+
tox_env: 'py38-pytest73-xdist330-coverage72'
9292
os: 'windows-latest'
93-
- name: 'py38-pytest71-xdist250-coverage64 (macos)'
93+
- name: 'py38-pytest73-xdist330-coverage72 (macos)'
9494
python: '3.8'
9595
toxpython: 'python3.8'
9696
python_arch: 'x64'
97-
tox_env: 'py38-pytest71-xdist250-coverage64'
97+
tox_env: 'py38-pytest73-xdist330-coverage72'
9898
os: 'macos-latest'
99-
- name: 'py39-pytest71-xdist250-coverage64 (ubuntu)'
99+
- name: 'py39-pytest73-xdist330-coverage72 (ubuntu)'
100100
python: '3.9'
101101
toxpython: 'python3.9'
102102
python_arch: 'x64'
103-
tox_env: 'py39-pytest71-xdist250-coverage64'
103+
tox_env: 'py39-pytest73-xdist330-coverage72'
104104
os: 'ubuntu-latest'
105-
- name: 'py39-pytest71-xdist250-coverage64 (windows)'
105+
- name: 'py39-pytest73-xdist330-coverage72 (windows)'
106106
python: '3.9'
107107
toxpython: 'python3.9'
108108
python_arch: 'x64'
109-
tox_env: 'py39-pytest71-xdist250-coverage64'
109+
tox_env: 'py39-pytest73-xdist330-coverage72'
110110
os: 'windows-latest'
111-
- name: 'py39-pytest71-xdist250-coverage64 (macos)'
111+
- name: 'py39-pytest73-xdist330-coverage72 (macos)'
112112
python: '3.9'
113113
toxpython: 'python3.9'
114114
python_arch: 'x64'
115-
tox_env: 'py39-pytest71-xdist250-coverage64'
115+
tox_env: 'py39-pytest73-xdist330-coverage72'
116116
os: 'macos-latest'
117-
- name: 'py310-pytest71-xdist250-coverage64 (ubuntu)'
117+
- name: 'py310-pytest73-xdist330-coverage72 (ubuntu)'
118118
python: '3.10'
119119
toxpython: 'python3.10'
120120
python_arch: 'x64'
121-
tox_env: 'py310-pytest71-xdist250-coverage64'
121+
tox_env: 'py310-pytest73-xdist330-coverage72'
122122
os: 'ubuntu-latest'
123-
- name: 'py310-pytest71-xdist250-coverage64 (windows)'
123+
- name: 'py310-pytest73-xdist330-coverage72 (windows)'
124124
python: '3.10'
125125
toxpython: 'python3.10'
126126
python_arch: 'x64'
127-
tox_env: 'py310-pytest71-xdist250-coverage64'
127+
tox_env: 'py310-pytest73-xdist330-coverage72'
128128
os: 'windows-latest'
129-
- name: 'py310-pytest71-xdist250-coverage64 (macos)'
129+
- name: 'py310-pytest73-xdist330-coverage72 (macos)'
130130
python: '3.10'
131131
toxpython: 'python3.10'
132132
python_arch: 'x64'
133-
tox_env: 'py310-pytest71-xdist250-coverage64'
133+
tox_env: 'py310-pytest73-xdist330-coverage72'
134134
os: 'macos-latest'
135-
- name: 'py311-pytest72-xdist320-coverage65 (ubuntu)'
135+
- name: 'py311-pytest73-xdist330-coverage72 (ubuntu)'
136136
python: '3.11'
137137
toxpython: 'python3.11'
138138
python_arch: 'x64'
139-
tox_env: 'py311-pytest72-xdist320-coverage65'
139+
tox_env: 'py311-pytest73-xdist330-coverage72'
140140
os: 'ubuntu-latest'
141-
- name: 'py311-pytest72-xdist320-coverage65 (windows)'
141+
- name: 'py311-pytest73-xdist330-coverage72 (windows)'
142142
python: '3.11'
143143
toxpython: 'python3.11'
144144
python_arch: 'x64'
145-
tox_env: 'py311-pytest72-xdist320-coverage65'
145+
tox_env: 'py311-pytest73-xdist330-coverage72'
146146
os: 'windows-latest'
147-
- name: 'py311-pytest72-xdist320-coverage65 (macos)'
147+
- name: 'py311-pytest73-xdist330-coverage72 (macos)'
148148
python: '3.11'
149149
toxpython: 'python3.11'
150150
python_arch: 'x64'
151-
tox_env: 'py311-pytest72-xdist320-coverage65'
151+
tox_env: 'py311-pytest73-xdist330-coverage72'
152152
os: 'macos-latest'
153-
- name: 'pypy38-pytest71-xdist250-coverage64 (ubuntu)'
153+
- name: 'pypy37-pytest73-xdist330-coverage72 (ubuntu)'
154+
python: 'pypy-3.7'
155+
toxpython: 'pypy3.7'
156+
python_arch: 'x64'
157+
tox_env: 'pypy37-pytest73-xdist330-coverage72'
158+
os: 'ubuntu-latest'
159+
- name: 'pypy37-pytest73-xdist330-coverage72 (windows)'
160+
python: 'pypy-3.7'
161+
toxpython: 'pypy3.7'
162+
python_arch: 'x64'
163+
tox_env: 'pypy37-pytest73-xdist330-coverage72'
164+
os: 'windows-latest'
165+
- name: 'pypy37-pytest73-xdist330-coverage72 (macos)'
166+
python: 'pypy-3.7'
167+
toxpython: 'pypy3.7'
168+
python_arch: 'x64'
169+
tox_env: 'pypy37-pytest73-xdist330-coverage72'
170+
os: 'macos-latest'
171+
- name: 'pypy38-pytest73-xdist330-coverage72 (ubuntu)'
154172
python: 'pypy-3.8'
155173
toxpython: 'pypy3.8'
156174
python_arch: 'x64'
157-
tox_env: 'pypy38-pytest71-xdist250-coverage64'
175+
tox_env: 'pypy38-pytest73-xdist330-coverage72'
158176
os: 'ubuntu-latest'
159-
- name: 'pypy38-pytest71-xdist250-coverage64 (windows)'
177+
- name: 'pypy38-pytest73-xdist330-coverage72 (windows)'
160178
python: 'pypy-3.8'
161179
toxpython: 'pypy3.8'
162180
python_arch: 'x64'
163-
tox_env: 'pypy38-pytest71-xdist250-coverage64'
181+
tox_env: 'pypy38-pytest73-xdist330-coverage72'
164182
os: 'windows-latest'
165-
- name: 'pypy38-pytest71-xdist250-coverage64 (macos)'
183+
- name: 'pypy38-pytest73-xdist330-coverage72 (macos)'
166184
python: 'pypy-3.8'
167185
toxpython: 'pypy3.8'
168186
python_arch: 'x64'
169-
tox_env: 'pypy38-pytest71-xdist250-coverage64'
187+
tox_env: 'pypy38-pytest73-xdist330-coverage72'
170188
os: 'macos-latest'
171-
- name: 'pypy39--pytest72-xdist320-coverage65 (ubuntu)'
189+
- name: 'pypy39-pytest73-xdist330-coverage72 (ubuntu)'
172190
python: 'pypy-3.9'
173191
toxpython: 'pypy3.9'
174192
python_arch: 'x64'
175-
tox_env: 'pypy39-pytest72-xdist320-coverage65'
193+
tox_env: 'pypy39-pytest73-xdist330-coverage72'
176194
os: 'ubuntu-latest'
177-
- name: 'pypy39-pytest72-xdist320-coverage65 (windows)'
195+
- name: 'pypy39-pytest73-xdist330-coverage72 (windows)'
178196
python: 'pypy-3.9'
179197
toxpython: 'pypy3.9'
180198
python_arch: 'x64'
181-
tox_env: 'pypy39-pytest72-xdist320-coverage65'
199+
tox_env: 'pypy39-pytest73-xdist330-coverage72'
182200
os: 'windows-latest'
183-
- name: 'pypy39-pytest72-xdist320-coverage65 (macos)'
201+
- name: 'pypy39-pytest73-xdist330-coverage72 (macos)'
184202
python: 'pypy-3.9'
185203
toxpython: 'pypy3.9'
186204
python_arch: 'x64'
187-
tox_env: 'pypy39-pytest72-xdist320-coverage65'
205+
tox_env: 'pypy39-pytest73-xdist330-coverage72'
188206
os: 'macos-latest'
189207
steps:
190208
- uses: actions/checkout@v3
@@ -196,7 +214,7 @@ jobs:
196214
architecture: ${{ matrix.python_arch }}
197215
- name: install dependencies
198216
run: |
199-
python -m pip install --progress-bar=off -r ci/requirements.txt
217+
python -mpip install --progress-bar=off -r ci/requirements.txt
200218
virtualenv --version
201219
pip --version
202220
tox --version
@@ -207,7 +225,9 @@ jobs:
207225
run: >
208226
tox -e ${{ matrix.tox_env }} -v
209227
210-
check:
228+
successful:
229+
# this provides a single status check for branch merge rules
230+
# (use this in `Require status checks to pass before merging` in branch settings)
211231
if: always()
212232
needs:
213233
- test

ci/templates/.github/workflows/test.yml

+14-14
Original file line numberDiff line numberDiff line change
@@ -7,25 +7,25 @@ jobs:
77
strategy:
88
fail-fast: false
99
matrix:
10-
python-version: ["pypy-3.7", "3.9"]
10+
python-version: ["pypy-3.9", "3.11"]
1111
target: [
1212
"src-layout",
1313
"adhoc-layout",
1414
]
1515
include:
1616
# Add new helper variables to existing jobs
17-
- {python-version: "pypy-3.7", tox-python-version: "pypy3"}
18-
- {python-version: "3.9", tox-python-version: "py39"}
17+
- {python-version: "pypy-3.9", tox-python-version: "pypy3"}
18+
- {python-version: "3.11", tox-python-version: "py311"}
1919
steps:
20-
- uses: actions/checkout@v2
20+
- uses: actions/checkout@v3
2121

2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v4
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Cache
28-
uses: actions/cache@v2
28+
uses: actions/cache@v3
2929
with:
3030
path: ~/.cache/pip
3131
key:
@@ -35,8 +35,8 @@ jobs:
3535
3636
- name: Install dependencies
3737
run: |
38-
python -m pip install -U pip
39-
python -m pip install -U wheel
38+
python -m pip install --upgrade pip
39+
python -m pip install --upgrade wheel
4040
python -m pip install --progress-bar=off tox -rci/requirements.txt
4141
4242
- name: Examples
@@ -54,13 +54,13 @@ jobs:
5454
matrix:
5555
include:
5656
- name: 'check'
57-
python: '3.9'
58-
toxpython: 'python3.9'
57+
python: '3.11'
58+
toxpython: 'python3.11'
5959
tox_env: 'check'
6060
os: 'ubuntu-latest'
6161
- name: 'docs'
62-
python: '3.9'
63-
toxpython: 'python3.9'
62+
python: '3.11'
63+
toxpython: 'python3.11'
6464
tox_env: 'docs'
6565
os: 'ubuntu-latest'
6666
{% for env in tox_environments %}
@@ -88,10 +88,10 @@ jobs:
8888
{% endfor %}
8989
{% endfor %}
9090
steps:
91-
- uses: actions/checkout@v2
91+
- uses: actions/checkout@v3
9292
with:
9393
fetch-depth: 0
94-
- uses: actions/setup-python@v2
94+
- uses: actions/setup-python@v4
9595
with:
9696
python-version: {{ '${{ matrix.python }}' }}
9797
architecture: {{ '${{ matrix.python_arch }}' }}

0 commit comments

Comments
 (0)