Skip to content

Commit 25a5a17

Browse files
committed
Updating dependencies, dropping Python<3.9 and fixing workflows
1 parent 0f7de8b commit 25a5a17

File tree

4 files changed

+427
-568
lines changed

4 files changed

+427
-568
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
pre-commit-key: ${{ steps.generate-pre-commit-key.outputs.key }}
1717
steps:
1818
- name: Check out code from GitHub
19-
uses: actions/checkout@v2.4.0
19+
uses: actions/checkout@v3
2020
with:
2121
fetch-depth: 0
2222
- name: Set up Python ${{ env.DEFAULT_PYTHON }}
@@ -32,7 +32,7 @@ jobs:
3232
}}"
3333
- name: Restore Python virtual environment
3434
id: cache-venv
35-
uses: actions/cache@v2.1.7
35+
uses: actions/cache@v3
3636
with:
3737
path: venv
3838
key: >-
@@ -54,7 +54,7 @@ jobs:
5454
hashFiles('.pre-commit-config.yaml') }}"
5555
- name: Restore pre-commit environment
5656
id: cache-precommit
57-
uses: actions/cache@v2.1.7
57+
uses: actions/cache@v3
5858
with:
5959
path: ${{ env.PRE_COMMIT_CACHE }}
6060
key: >-
@@ -72,12 +72,12 @@ jobs:
7272
runs-on: ubuntu-latest
7373
strategy:
7474
matrix:
75-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
75+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
7676
outputs:
7777
python-key: ${{ steps.generate-python-key.outputs.key }}
7878
steps:
7979
- name: Check out code from GitHub
80-
uses: actions/checkout@v2.4.0
80+
uses: actions/checkout@v3
8181
with:
8282
fetch-depth: 0
8383
- name: Set up Python ${{ matrix.python-version }}
@@ -93,7 +93,7 @@ jobs:
9393
}}"
9494
- name: Restore Python virtual environment
9595
id: cache-venv
96-
uses: actions/cache@v2.1.7
96+
uses: actions/cache@v3
9797
with:
9898
path: venv
9999
key: >-
@@ -116,7 +116,7 @@ jobs:
116116
strategy:
117117
fail-fast: false
118118
matrix:
119-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
119+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
120120
steps:
121121
- name: Check out code from GitHub
122122
uses: actions/[email protected]
@@ -127,7 +127,7 @@ jobs:
127127
python-version: ${{ matrix.python-version }}
128128
- name: Restore Python virtual environment
129129
id: cache-venv
130-
uses: actions/cache@v2.1.7
130+
uses: actions/cache@v3
131131
with:
132132
path: venv
133133
key:
@@ -143,7 +143,7 @@ jobs:
143143
. venv/bin/activate
144144
pytest --cov --cov-report= tests/
145145
- name: Upload coverage artifact
146-
uses: actions/upload-artifact@v2.3.1
146+
uses: actions/upload-artifact@v4
147147
with:
148148
name: coverage-${{ matrix.python-version }}
149149
path: .coverage
@@ -154,20 +154,20 @@ jobs:
154154
needs: ["prepare-tests-linux", "pytest-linux"]
155155
strategy:
156156
matrix:
157-
python-version: [3.8]
157+
python-version: ["3.13"]
158158
env:
159159
COVERAGERC_FILE: .coveragerc
160160
steps:
161161
- name: Check out code from GitHub
162-
uses: actions/checkout@v2.4.0
162+
uses: actions/checkout@v3
163163
- name: Set up Python ${{ matrix.python-version }}
164164
id: python
165165
uses: actions/setup-python@v4
166166
with:
167167
python-version: ${{ matrix.python-version }}
168168
- name: Restore Python virtual environment
169169
id: cache-venv
170-
uses: actions/cache@v2.1.7
170+
uses: actions/cache@v3
171171
with:
172172
path: venv
173173
key:
@@ -197,12 +197,12 @@ jobs:
197197
runs-on: windows-latest
198198
strategy:
199199
matrix:
200-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
200+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
201201
outputs:
202202
python-key: ${{ steps.generate-python-key.outputs.key }}
203203
steps:
204204
- name: Check out code from GitHub
205-
uses: actions/checkout@v2.4.0
205+
uses: actions/checkout@v3
206206
with:
207207
fetch-depth: 0
208208
- name: Set up Python ${{ matrix.python-version }}
@@ -218,7 +218,7 @@ jobs:
218218
}}"
219219
- name: Restore Python virtual environment
220220
id: cache-venv
221-
uses: actions/cache@v2.1.7
221+
uses: actions/cache@v3
222222
with:
223223
path: venv
224224
key: >-
@@ -241,22 +241,22 @@ jobs:
241241
strategy:
242242
fail-fast: false
243243
matrix:
244-
python-version: [3.7, 3.8, 3.9, "3.10", "3.11"]
244+
python-version: [3.9, "3.10", "3.11", "3.12", "3.13"]
245245
steps:
246246
- name: Set temp directory
247247
run: echo "TEMP=$env:USERPROFILE\AppData\Local\Temp" >> $env:GITHUB_ENV
248248
# Workaround to set correct temp directory on Windows
249249
# https://github.com/actions/virtual-environments/issues/712
250250
- name: Check out code from GitHub
251-
uses: actions/checkout@v2.4.0
251+
uses: actions/checkout@v3
252252
- name: Set up Python ${{ matrix.python-version }}
253253
id: python
254254
uses: actions/setup-python@v4
255255
with:
256256
python-version: ${{ matrix.python-version }}
257257
- name: Restore Python virtual environment
258258
id: cache-venv
259-
uses: actions/cache@v2.1.7
259+
uses: actions/cache@v3
260260
with:
261261
path: venv
262262
key:
@@ -277,12 +277,12 @@ jobs:
277277
runs-on: ubuntu-latest
278278
strategy:
279279
matrix:
280-
python-version: ["pypy3.7", "pypy3.8", "pypy3.9"]
280+
python-version: ["pypy3.10","pypy3.11"]
281281
outputs:
282282
python-key: ${{ steps.generate-python-key.outputs.key }}
283283
steps:
284284
- name: Check out code from GitHub
285-
uses: actions/checkout@v2.4.0
285+
uses: actions/checkout@v3
286286
with:
287287
fetch-depth: 0
288288
- name: Set up Python ${{ matrix.python-version }}
@@ -298,7 +298,7 @@ jobs:
298298
}}"
299299
- name: Restore Python virtual environment
300300
id: cache-venv
301-
uses: actions/cache@v2.1.7
301+
uses: actions/cache@v3
302302
with:
303303
path: venv
304304
key: >-
@@ -321,18 +321,18 @@ jobs:
321321
strategy:
322322
fail-fast: false
323323
matrix:
324-
python-version: ["pypy3.7", "pypy3.8", "pypy3.9"]
324+
python-version: ["pypy3.10","pypy3.11"]
325325
steps:
326326
- name: Check out code from GitHub
327-
uses: actions/checkout@v2.4.0
327+
uses: actions/checkout@v3
328328
- name: Set up Python ${{ matrix.python-version }}
329329
id: python
330330
uses: actions/setup-python@v4
331331
with:
332332
python-version: ${{ matrix.python-version }}
333333
- name: Restore Python virtual environment
334334
id: cache-venv
335-
uses: actions/cache@v2.1.7
335+
uses: actions/cache@v3
336336
with:
337337
path: venv
338338
key:

.pre-commit-config.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# https://pre-commit.com/
22
repos:
33
- repo: https://github.com/pre-commit/pre-commit-hooks
4-
rev: v4.6.0
4+
rev: v5.0.0
55
hooks:
66
- id: trailing-whitespace
77
- id: end-of-file-fixer
@@ -10,17 +10,17 @@ repos:
1010
- id: debug-statements
1111
# code formatting
1212
- repo: https://github.com/PyCQA/flake8
13-
rev: 7.1.0
13+
rev: 7.3.0
1414
hooks:
1515
- id: flake8
1616
args: [ --max-line-length=120 ]
1717
- repo: https://github.com/psf/black
18-
rev: 24.4.2
18+
rev: 25.1.0
1919
hooks:
2020
- id: black
2121
args: [--safe, --line-length=120]
2222
- repo: https://github.com/PyCQA/isort
23-
rev: 5.13.2
23+
rev: 6.0.1
2424
hooks:
2525
- id: isort
2626
args: ['--profile', 'black']

0 commit comments

Comments
 (0)