Skip to content

Commit 88e2e5e

Browse files
author
Carl Crowder
committed
Updating CI config with poetry packaging
1 parent 8834dda commit 88e2e5e

File tree

1 file changed

+26
-26
lines changed

1 file changed

+26
-26
lines changed

.github/workflows/ci.yaml

Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ jobs:
2121
fetch-depth: 0
2222
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
2323
id: python
24-
uses: actions/setup-python@v2.3.1
24+
uses: actions/setup-python@v4
2525
with:
2626
python-version: ${{ env.DEFAULT_PYTHON }}
2727
- name: Generate partial Python venv restore key
2828
id: generate-python-key
2929
run: >-
3030
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')
3232
}}"
3333
- name: Restore Python virtual environment
3434
id: cache-venv
@@ -45,8 +45,8 @@ jobs:
4545
run: |
4646
python -m venv venv
4747
. 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
5050
- name: Generate pre-commit restore key
5151
id: generate-pre-commit-key
5252
run: >-
@@ -72,7 +72,7 @@ jobs:
7272
runs-on: ubuntu-latest
7373
strategy:
7474
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"]
7676
outputs:
7777
python-key: ${{ steps.generate-python-key.outputs.key }}
7878
steps:
@@ -82,14 +82,14 @@ jobs:
8282
fetch-depth: 0
8383
- name: Set up Python ${{ matrix.python-version }}
8484
id: python
85-
uses: actions/setup-python@v2.3.1
85+
uses: actions/setup-python@v4
8686
with:
8787
python-version: ${{ matrix.python-version }}
8888
- name: Generate partial Python venv restore key
8989
id: generate-python-key
9090
run: >-
9191
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')
9393
}}"
9494
- name: Restore Python virtual environment
9595
id: cache-venv
@@ -106,8 +106,8 @@ jobs:
106106
run: |
107107
python -m venv venv
108108
. 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
111111
112112
pytest-linux:
113113
name: Run tests Python ${{ matrix.python-version }} (Linux)
@@ -116,13 +116,13 @@ jobs:
116116
strategy:
117117
fail-fast: false
118118
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"]
120120
steps:
121121
- name: Check out code from GitHub
122122
uses: actions/checkout@v2.4.0
123123
- name: Set up Python ${{ matrix.python-version }}
124124
id: python
125-
uses: actions/setup-python@v2.3.1
125+
uses: actions/setup-python@v4
126126
with:
127127
python-version: ${{ matrix.python-version }}
128128
- name: Restore Python virtual environment
@@ -162,7 +162,7 @@ jobs:
162162
uses: actions/checkout@v2.4.0
163163
- name: Set up Python ${{ matrix.python-version }}
164164
id: python
165-
uses: actions/setup-python@v2.3.1
165+
uses: actions/setup-python@v4
166166
with:
167167
python-version: ${{ matrix.python-version }}
168168
- name: Restore Python virtual environment
@@ -197,7 +197,7 @@ jobs:
197197
runs-on: windows-latest
198198
strategy:
199199
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"]
201201
outputs:
202202
python-key: ${{ steps.generate-python-key.outputs.key }}
203203
steps:
@@ -207,14 +207,14 @@ jobs:
207207
fetch-depth: 0
208208
- name: Set up Python ${{ matrix.python-version }}
209209
id: python
210-
uses: actions/setup-python@v2.3.1
210+
uses: actions/setup-python@v4
211211
with:
212212
python-version: ${{ matrix.python-version }}
213213
- name: Generate partial Python venv restore key
214214
id: generate-python-key
215215
run: >-
216216
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
217-
hashFiles('setup.cfg', 'requirements_test_min.txt')
217+
hashFiles('poetry.lock', 'pyproject.toml')
218218
}}"
219219
- name: Restore Python virtual environment
220220
id: cache-venv
@@ -231,8 +231,8 @@ jobs:
231231
run: |
232232
python -m venv venv
233233
. 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
236236
237237
pytest-windows:
238238
name: Run tests Python ${{ matrix.python-version }} (Windows)
@@ -241,7 +241,7 @@ jobs:
241241
strategy:
242242
fail-fast: false
243243
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"]
245245
steps:
246246
- name: Set temp directory
247247
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
@@ -251,7 +251,7 @@ jobs:
251251
uses: actions/checkout@v2.4.0
252252
- name: Set up Python ${{ matrix.python-version }}
253253
id: python
254-
uses: actions/setup-python@v2.3.1
254+
uses: actions/setup-python@v4
255255
with:
256256
python-version: ${{ matrix.python-version }}
257257
- name: Restore Python virtual environment
@@ -277,7 +277,7 @@ jobs:
277277
runs-on: ubuntu-latest
278278
strategy:
279279
matrix:
280-
python-version: ["pypy3"]
280+
python-version: ["pypy3.7", "pypy3.8", "pypy3.9"]
281281
outputs:
282282
python-key: ${{ steps.generate-python-key.outputs.key }}
283283
steps:
@@ -287,14 +287,14 @@ jobs:
287287
fetch-depth: 0
288288
- name: Set up Python ${{ matrix.python-version }}
289289
id: python
290-
uses: actions/setup-python@v2.3.1
290+
uses: actions/setup-python@v4
291291
with:
292292
python-version: ${{ matrix.python-version }}
293293
- name: Generate partial Python venv restore key
294294
id: generate-python-key
295295
run: >-
296296
echo "::set-output name=key::venv-${{ env.CACHE_VERSION }}-${{
297-
hashFiles('setup.cfg', 'requirements_test_min.txt')
297+
hashFiles('poetry.lock', 'pyproject.toml')
298298
}}"
299299
- name: Restore Python virtual environment
300300
id: cache-venv
@@ -311,8 +311,8 @@ jobs:
311311
run: |
312312
python -m venv venv
313313
. 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
316316
317317
pytest-pypy:
318318
name: Run tests Python ${{ matrix.python-version }}
@@ -321,13 +321,13 @@ jobs:
321321
strategy:
322322
fail-fast: false
323323
matrix:
324-
python-version: ["pypy3"]
324+
python-version: ["pypy3.7", "pypy3.8", "pypy3.9"]
325325
steps:
326326
- name: Check out code from GitHub
327327
uses: actions/checkout@v2.4.0
328328
- name: Set up Python ${{ matrix.python-version }}
329329
id: python
330-
uses: actions/setup-python@v2.3.1
330+
uses: actions/setup-python@v4
331331
with:
332332
python-version: ${{ matrix.python-version }}
333333
- name: Restore Python virtual environment

0 commit comments

Comments
 (0)