Skip to content

Commit 19bfded

Browse files
authored
Update version in workflow actions and enable 3.13 (#97)
* Update actions versions * Add concurrency Prevent from running the workflow more than once for the same pull request or for the same commit hash * Use pre-releases from action/setup-python Drop complexity of the workflow and tox config by not using deadsnakes GitHub Action. Instead, use setup-python action's pre-release versions. * Add 3.13 classifier to pyproject.toml
1 parent d572656 commit 19bfded

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

.github/workflows/test.yml

Lines changed: 10 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,17 @@
11
name: Test
22
on: [push, pull_request]
33

4+
concurrency:
5+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.sha }}
6+
cancel-in-progress: true
7+
48
jobs:
59
tests:
610
runs-on: ubuntu-latest
711
strategy:
812
fail-fast: false
913
matrix:
10-
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12-dev']
14+
python-version: [3.7, 3.8, 3.9, '3.10', '3.11', '3.12', '3.13']
1115
max-parallel: 1
1216

1317
steps:
@@ -17,7 +21,7 @@ jobs:
1721
run: echo $GITHUB_CONTEXT
1822

1923
- name: Checkout code
20-
uses: actions/checkout@v3
24+
uses: actions/checkout@v4
2125
with:
2226
fetch-depth: 1
2327

@@ -31,16 +35,10 @@ jobs:
3135
${{ runner.os }}-pip-
3236
3337
- name: Setup python ${{ matrix.python-version }}
34-
uses: actions/setup-python@v4
35-
if: "!endsWith(matrix.python-version, '-dev')"
36-
with:
37-
python-version: ${{ matrix.python-version }}
38-
39-
- name: Setup python ${{ matrix.python-version }} (via deadsnakes)
40-
uses: deadsnakes/[email protected]
41-
if: "endsWith(matrix.python-version, '-dev')"
38+
uses: actions/setup-python@v5
4239
with:
4340
python-version: ${{ matrix.python-version }}
41+
allow-prereleases: true
4442

4543
- name: Install tox and test related
4644
run: |
@@ -66,12 +64,12 @@ jobs:
6664

6765
steps:
6866
- name: Checkout code
69-
uses: actions/checkout@v3
67+
uses: actions/checkout@v4
7068
with:
7169
fetch-depth: 1
7270

7371
- name: Setup python
74-
uses: actions/setup-python@v4
72+
uses: actions/setup-python@v5
7573
with:
7674
python-version: 3.8
7775

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ classifiers = [
3434
"Programming Language :: Python :: 3.10",
3535
"Programming Language :: Python :: 3.11",
3636
"Programming Language :: Python :: 3.12",
37+
"Programming Language :: Python :: 3.13",
3738
"Framework :: Sphinx",
3839
]
3940

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tox]
22
envlist =
3-
py{37,38,39,310,311,312-dev},
3+
py{37,38,39,310,311,312,313},
44
flake8,
55
mypy
66

@@ -11,7 +11,8 @@ python =
1111
3.9: py39
1212
3.10: py310
1313
3.11: py311
14-
3.12: py312-dev
14+
3.12: py312
15+
3.13: py313
1516

1617
[testenv]
1718
deps=-e.[transifex,test]

0 commit comments

Comments
 (0)