Skip to content

Commit 2ea2049

Browse files
committed
Add 3.14 to CI, set default to 3.12
1 parent aef7161 commit 2ea2049

File tree

1 file changed

+15
-3
lines changed

1 file changed

+15
-3
lines changed

.github/workflows/python-tests.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,18 @@ on:
1414
- "main"
1515

1616
jobs:
17+
settings:
18+
runs-on: "ubuntu-latest"
19+
name: "Define workflow settings"
20+
outputs:
21+
default-python-version: "3.12"
22+
steps:
23+
- name: "Define settings"
24+
run: ""
25+
1726
run-tests-and-coverage:
1827
name: "Run pytest with coverage."
28+
needs: ["settings"]
1929
runs-on: "${{ matrix.os }}"
2030
strategy:
2131
fail-fast: false
@@ -30,6 +40,7 @@ jobs:
3040
- "3.11"
3141
- "3.12"
3242
- "3.13"
43+
- "3.14"
3344

3445
steps:
3546
- name: "Repo checkout"
@@ -59,7 +70,7 @@ jobs:
5970

6071
coverage-compile:
6172
name: "Compile coverage reports."
62-
needs: "run-tests-and-coverage"
73+
needs: ["settings", "run-tests-and-coverage"]
6374
runs-on: "ubuntu-latest"
6475
steps:
6576
- name: "Repo checkout"
@@ -68,7 +79,7 @@ jobs:
6879
- name: "Set up Python"
6980
uses: "actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b"
7081
with:
71-
python-version: "3.12"
82+
python-version: "${{ needs.settings.outputs.default-python-version }}"
7283

7384
- name: "Install nox"
7485
run: |
@@ -89,6 +100,7 @@ jobs:
89100
90101
linting:
91102
name: "Check linting and formatting requirements"
103+
needs: ["settings"]
92104
runs-on: "ubuntu-latest"
93105
steps:
94106
- name: "Repo checkout"
@@ -97,7 +109,7 @@ jobs:
97109
- name: "Set up Python"
98110
uses: "actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b"
99111
with:
100-
python-version: "3.12"
112+
python-version: "${{ needs.settings.outputs.default-python-version }}"
101113

102114
- name: "Install nox"
103115
run: |

0 commit comments

Comments
 (0)