Skip to content

Commit 87b31e6

Browse files
test python 3.10, 3.11 and 3.12
1 parent 28f3c5c commit 87b31e6

File tree

1 file changed

+12
-13
lines changed

1 file changed

+12
-13
lines changed

.github/workflows/main.yml

Lines changed: 12 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,12 @@ on:
1313
jobs:
1414
test:
1515
runs-on: ubuntu-latest
16-
16+
strategy:
17+
matrix:
18+
python-version:
19+
- "3.10"
20+
- "3.11"
21+
- "3.12"
1722
steps:
1823
- name: Checkout code
1924
uses: actions/checkout@v4
@@ -22,12 +27,9 @@ jobs:
2227
uses: astral-sh/setup-uv@v5
2328
with:
2429
# Install a specific version of uv.
25-
version: "0.6.6"
26-
27-
- name: "Set up Python"
28-
uses: actions/setup-python@v5
29-
with:
30-
python-version-file: ".python-version"
30+
enable-cache: true
31+
version: "0.6.12"
32+
python-version: ${{ matrix.python-version }}
3133

3234
- name: Install the project
3335
run: uv sync --all-extras --dev
@@ -61,12 +63,9 @@ jobs:
6163
uses: astral-sh/setup-uv@v5
6264
with:
6365
# Install a specific version of uv.
64-
version: "0.6.6"
65-
66-
- name: "Set up Python"
67-
uses: actions/setup-python@v5
68-
with:
69-
python-version-file: ".python-version"
66+
enable-cache: true
67+
version: "0.6.12"
68+
python-version: "3.12"
7069

7170
- name: Install the project
7271
run: uv sync --all-extras --dev

0 commit comments

Comments
 (0)