@@ -21,14 +21,14 @@ jobs:
21
21
fetch-depth : 0
22
22
- name : Set up Python ${{ env.DEFAULT_PYTHON }}
23
23
id : python
24
- uses : actions/setup-python@v2.3.1
24
+ uses : actions/setup-python@v4
25
25
with :
26
26
python-version : ${{ env.DEFAULT_PYTHON }}
27
27
- name : Generate partial Python venv restore key
28
28
id : generate-python-key
29
29
run : >-
30
30
echo "::set-output name=key::base-venv-${{ env.CACHE_VERSION }}-${{
31
- hashFiles('setup.cfg ', 'requirements_test.txt', 'requirements_test_min.txt ')
31
+ hashFiles('poetry.lock ', 'pyproject.toml ')
32
32
}}"
33
33
- name : Restore Python virtual environment
34
34
id : cache-venv
45
45
run : |
46
46
python -m venv venv
47
47
. venv/bin/activate
48
- python -m pip install -U pip setuptools wheel
49
- pip install -U -r requirements_test.txt
48
+ python -m pip install -U pip poetry
49
+ poetry install
50
50
- name : Generate pre-commit restore key
51
51
id : generate-pre-commit-key
52
52
run : >-
72
72
runs-on : ubuntu-latest
73
73
strategy :
74
74
matrix :
75
- python-version : [3.6, 3. 7, 3.8, 3.9, "3.10"]
75
+ python-version : [3.7, 3.8, 3.9, "3.10", "3.11 "]
76
76
outputs :
77
77
python-key : ${{ steps.generate-python-key.outputs.key }}
78
78
steps :
@@ -82,14 +82,14 @@ jobs:
82
82
fetch-depth : 0
83
83
- name : Set up Python ${{ matrix.python-version }}
84
84
id : python
85
- uses : actions/setup-python@v2.3.1
85
+ uses : actions/setup-python@v4
86
86
with :
87
87
python-version : ${{ matrix.python-version }}
88
88
- name : Generate partial Python venv restore key
89
89
id : generate-python-key
90
90
run : >-
91
91
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
92
- hashFiles('setup.cfg ', 'requirements_test.txt', 'requirements_test_min.txt ')
92
+ hashFiles('poetry.lock ', 'pyproject.toml ')
93
93
}}"
94
94
- name : Restore Python virtual environment
95
95
id : cache-venv
@@ -106,8 +106,8 @@ jobs:
106
106
run : |
107
107
python -m venv venv
108
108
. venv/bin/activate
109
- python -m pip install -U pip setuptools wheel
110
- pip install -U -r requirements_test.txt
109
+ python -m pip install -U pip poetry
110
+ poetry install
111
111
112
112
pytest-linux :
113
113
name : Run tests Python ${{ matrix.python-version }} (Linux)
@@ -116,13 +116,13 @@ jobs:
116
116
strategy :
117
117
fail-fast : false
118
118
matrix :
119
- python-version : [3.6, 3. 7, 3.8, 3.9, "3.10"]
119
+ python-version : [3.7, 3.8, 3.9, "3.10", "3.11 "]
120
120
steps :
121
121
- name : Check out code from GitHub
122
122
uses : actions/checkout@v2.4.0
123
123
- name : Set up Python ${{ matrix.python-version }}
124
124
id : python
125
- uses : actions/setup-python@v2.3.1
125
+ uses : actions/setup-python@v4
126
126
with :
127
127
python-version : ${{ matrix.python-version }}
128
128
- name : Restore Python virtual environment
@@ -162,7 +162,7 @@ jobs:
162
162
uses : actions/checkout@v2.4.0
163
163
- name : Set up Python ${{ matrix.python-version }}
164
164
id : python
165
- uses : actions/setup-python@v2.3.1
165
+ uses : actions/setup-python@v4
166
166
with :
167
167
python-version : ${{ matrix.python-version }}
168
168
- name : Restore Python virtual environment
@@ -197,7 +197,7 @@ jobs:
197
197
runs-on : windows-latest
198
198
strategy :
199
199
matrix :
200
- python-version : [3.6, 3. 7, 3.8, 3.9, "3.10"]
200
+ python-version : [3.7, 3.8, 3.9, "3.10", "3.11 "]
201
201
outputs :
202
202
python-key : ${{ steps.generate-python-key.outputs.key }}
203
203
steps :
@@ -207,14 +207,14 @@ jobs:
207
207
fetch-depth : 0
208
208
- name : Set up Python ${{ matrix.python-version }}
209
209
id : python
210
- uses : actions/setup-python@v2.3.1
210
+ uses : actions/setup-python@v4
211
211
with :
212
212
python-version : ${{ matrix.python-version }}
213
213
- name : Generate partial Python venv restore key
214
214
id : generate-python-key
215
215
run : >-
216
216
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
217
- hashFiles('setup.cfg ', 'requirements_test_min.txt ')
217
+ hashFiles('poetry.lock ', 'pyproject.toml ')
218
218
}}"
219
219
- name : Restore Python virtual environment
220
220
id : cache-venv
@@ -231,8 +231,8 @@ jobs:
231
231
run : |
232
232
python -m venv venv
233
233
. venv\\Scripts\\activate
234
- python -m pip install -U pip setuptools wheel
235
- pip install -U -r requirements_test_min.txt
234
+ python -m pip install -U pip poetry
235
+ poetry install
236
236
237
237
pytest-windows :
238
238
name : Run tests Python ${{ matrix.python-version }} (Windows)
@@ -241,7 +241,7 @@ jobs:
241
241
strategy :
242
242
fail-fast : false
243
243
matrix :
244
- python-version : [3.6, 3. 7, 3.8, 3.9, "3.10"]
244
+ python-version : [3.7, 3.8, 3.9, "3.10", "3.11 "]
245
245
steps :
246
246
- name : Set temp directory
247
247
run : echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
@@ -251,7 +251,7 @@ jobs:
251
251
uses : actions/checkout@v2.4.0
252
252
- name : Set up Python ${{ matrix.python-version }}
253
253
id : python
254
- uses : actions/setup-python@v2.3.1
254
+ uses : actions/setup-python@v4
255
255
with :
256
256
python-version : ${{ matrix.python-version }}
257
257
- name : Restore Python virtual environment
@@ -277,7 +277,7 @@ jobs:
277
277
runs-on : ubuntu-latest
278
278
strategy :
279
279
matrix :
280
- python-version : ["pypy3"]
280
+ python-version : ["pypy3.7", "pypy3.8", "pypy3.9 "]
281
281
outputs :
282
282
python-key : ${{ steps.generate-python-key.outputs.key }}
283
283
steps :
@@ -287,14 +287,14 @@ jobs:
287
287
fetch-depth : 0
288
288
- name : Set up Python ${{ matrix.python-version }}
289
289
id : python
290
- uses : actions/setup-python@v2.3.1
290
+ uses : actions/setup-python@v4
291
291
with :
292
292
python-version : ${{ matrix.python-version }}
293
293
- name : Generate partial Python venv restore key
294
294
id : generate-python-key
295
295
run : >-
296
296
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
297
- hashFiles('setup.cfg ', 'requirements_test_min.txt ')
297
+ hashFiles('poetry.lock ', 'pyproject.toml ')
298
298
}}"
299
299
- name : Restore Python virtual environment
300
300
id : cache-venv
@@ -311,8 +311,8 @@ jobs:
311
311
run : |
312
312
python -m venv venv
313
313
. venv/bin/activate
314
- python -m pip install -U pip setuptools wheel
315
- pip install -U -r requirements_test_min.txt
314
+ python -m pip install -U pip poetry
315
+ poetry install
316
316
317
317
pytest-pypy :
318
318
name : Run tests Python ${{ matrix.python-version }}
@@ -321,13 +321,13 @@ jobs:
321
321
strategy :
322
322
fail-fast : false
323
323
matrix :
324
- python-version : ["pypy3"]
324
+ python-version : ["pypy3.7", "pypy3.8", "pypy3.9 "]
325
325
steps :
326
326
- name : Check out code from GitHub
327
327
uses : actions/checkout@v2.4.0
328
328
- name : Set up Python ${{ matrix.python-version }}
329
329
id : python
330
- uses : actions/setup-python@v2.3.1
330
+ uses : actions/setup-python@v4
331
331
with :
332
332
python-version : ${{ matrix.python-version }}
333
333
- name : Restore Python virtual environment
0 commit comments