Skip to content

Commit 7db703f

Browse files
committed
set python version in github workflows
1 parent c81e769 commit 7db703f

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ jobs:
1818
lint:
1919
name: Code linting
2020
runs-on: ubuntu-latest
21+
strategy:
22+
matrix:
23+
python-version: [ "3.13" ]
2124
steps:
2225
- name: Harden Runner
2326
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
@@ -30,7 +33,7 @@ jobs:
3033
- name: Set up Python${{ matrix.python-version }}
3134
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3235
with:
33-
python-version: "3.x"
36+
python-version: ${{ matrix.python-version }}
3437
cache: pip
3538
- name: Install CI libraries
3639
run: |

.github/workflows/publish-pypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
# IMPORTANT: this permission is mandatory for trusted publishing
1717
id-token: write
1818
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
python-version: [ "3.13" ]
1922
steps:
2023
- name: Harden Runner
2124
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
@@ -32,10 +35,10 @@ jobs:
3235
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3336
with:
3437
persist-credentials: false
35-
- name: Set up Python3
38+
- name: Set up Python${{ matrix.python-version }}
3639
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3740
with:
38-
python-version: "3.x"
41+
python-version: ${{ matrix.python-version }}
3942
- name: Install CI libraries
4043
run: |
4144
python -m pip install --require-hashes -r CI/requirements_ci.txt

.github/workflows/tag-testpypi.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ jobs:
1616
# IMPORTANT: this permission is mandatory for trusted publishing
1717
id-token: write
1818
runs-on: ubuntu-latest
19+
strategy:
20+
matrix:
21+
python-version: [ "3.13" ]
1922
steps:
2023
- name: Harden Runner
2124
uses: step-security/harden-runner@95d9a5deda9de15063e7595e9719c11c38c90ae2 # v2.13.2
@@ -32,10 +35,10 @@ jobs:
3235
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
3336
with:
3437
persist-credentials: false
35-
- name: Set up Python3
38+
- name: Set up Python${{ matrix.python-version }}
3639
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
3740
with:
38-
python-version: "3.x"
41+
python-version: ${{ matrix.python-version }}
3942
- name: Install CI libraries
4043
run: |
4144
python -m pip install --require-hashes -r CI/requirements_ci.txt

0 commit comments

Comments
 (0)