Skip to content

Commit 48bfeb5

Browse files
committed
Unify Python version in workflows
1 parent 9096466 commit 48bfeb5

6 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/build-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
- name: Set up Python
3434
uses: actions/setup-python@v4
3535
with:
36-
python-version: '3.9'
36+
python-version-file: '.python-version'
3737
- name: Install dependencies
3838
run: |
3939
python -m pip install --upgrade pip

.github/workflows/dev-release.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- name: Set up Python
2020
uses: actions/setup-python@v4
2121
with:
22-
python-version: '3.10'
22+
python-version-file: '.python-version'
2323
- name: Install pip & tbump
2424
run: python -m pip install --upgrade pip tbump
2525
- name: Bump to dev

.github/workflows/docs.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: Set up python 3.11
1818
uses: actions/setup-python@v4
1919
with:
20-
python-version: "3.11"
20+
python-version-file: '.python-version'
2121
cache: 'pip'
2222
cache-dependency-path: |
2323
tox-requirements.txt

.github/workflows/release-master-as.alpha.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Set up Python
2424
uses: actions/setup-python@v4
2525
with:
26-
python-version: '3.9'
26+
python-version-file: '.python-version'
2727
- name: Install pip & tbump
2828
run: python -m pip install --upgrade pip tbump
2929
- name: Bump to alpha

.github/workflows/tests.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ jobs:
5757
- name: Set up Python 3.11
5858
uses: actions/setup-python@v4
5959
with:
60-
python-version: '3.11'
60+
python-version-file: '.python-version'
6161
cache: 'pip'
6262
cache-dependency-path: |
6363
lint-requirements.txt
@@ -79,7 +79,7 @@ jobs:
7979
- name: Set up Python 3.11
8080
uses: actions/setup-python@v4
8181
with:
82-
python-version: '3.11'
82+
python-version-file: '.python-version'
8383
cache: 'pip'
8484
cache-dependency-path: |
8585
tox-requirements.txt

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.11.4

0 commit comments

Comments
 (0)