Skip to content

Commit a7e4c01

Browse files
noelmcloughlindalito
authored andcommitted
chore(workflows): allow matrix python version
1 parent a46f372 commit a7e4c01

File tree

3 files changed

+19
-6
lines changed

3 files changed

+19
-6
lines changed

template/.github/workflows/deploy-docs.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ jobs:
1111
build-docs:
1212
runs-on: ubuntu-latest
1313

14+
strategy:
15+
matrix:
16+
pyversion: ["3.13"]
17+
1418
# Grant GITHUB_TOKEN the permissions required to make a gh-pages deployment
1519
permissions:
1620
contents: write # to let mkdocs write the new docs
@@ -35,15 +39,15 @@ jobs:
3539
- name: Install uv
3640
uses: astral-sh/[email protected]
3741
with:
38-
python-version: 3.13
42+
python-version: ${{ matrix.pyversion }}
3943
enable-cache: true
4044
cache-dependency-glob: "uv.lock"
4145

4246
# https://github.com/actions/setup-python
4347
- name: Set up Python
4448
uses: actions/[email protected]
4549
with:
46-
python-version: 3.13
50+
python-version: ${{ matrix.pyversion }}
4751

4852
- name: Install just
4953
run: |

template/.github/workflows/{% if gh_action_docs_preview %}test_pages_build.yaml{% endif %}.jinja

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,11 @@ jobs:
2323
id-token: write # allow to generate an OpenID Connect (OIDC) token
2424
pull-requests: write # add comment on the PR with the preview URL
2525
runs-on: ubuntu-latest
26+
27+
strategy:
28+
matrix:
29+
pyversion: ["3.13"]
30+
2631
steps:
2732
# https://github.com/actions/checkout
2833
- name: Checkout
@@ -34,15 +39,15 @@ jobs:
3439
- name: Install uv
3540
uses: astral-sh/[email protected]
3641
with:
37-
python-version: 3.13
42+
python-version: ${{ matrix.pyversion }}
3843
enable-cache: true
3944
cache-dependency-glob: "uv.lock"
4045

4146
# https://github.com/actions/setup-python
4247
- name: Set up Python 3
4348
uses: actions/[email protected]
4449
with:
45-
python-version: 3.13
50+
python-version: ${{ matrix.pyversion }}
4651

4752
- name: Install dependencies
4853
run: uv sync --dev --no-progress

template/.github/workflows/{% if gh_action_pypi %}pypi-publish.yaml{% endif %}.jinja

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ jobs:
2525
name: Build Python 🐍 distributions 📦 for publishing
2626
runs-on: ubuntu-latest
2727

28+
strategy:
29+
matrix:
30+
pyversion: ["3.13"]
31+
2832
steps:
2933
# https://github.com/actions/checkout
3034
- name: Check out repository
@@ -36,14 +40,14 @@ jobs:
3640
- name: Install uv
3741
uses: astral-sh/[email protected]
3842
with:
39-
python-version: 3.13
43+
python-version: ${{ matrix.pyversion }}
4044
enable-cache: true
4145

4246
# https://github.com/actions/setup-python
4347
- name: Set up Python
4448
uses: actions/[email protected]
4549
with:
46-
python-version: 3.13
50+
python-version: ${{ matrix.pyversion }}
4751

4852
- name: Install just
4953
run: |

0 commit comments

Comments
 (0)