Skip to content

Commit 59e7074

Browse files
authored
build: use specific python version (#609)
1 parent 4a97a78 commit 59e7074

File tree

4 files changed

+22
-4
lines changed

4 files changed

+22
-4
lines changed

.github/workflows/release-script-tests.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,14 @@ jobs:
2727

2828
steps:
2929
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0
30+
31+
- name: Prepare Python
32+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
33+
with:
34+
cache: 'pip' # caching pip dependencies
35+
3036
- name: Install dependencies
31-
run: pip3 install -r requirements.txt
37+
run: pip install -r requirements.txt
38+
3239
- name: Run tests
3340
run: pytest -v

.github/workflows/release_create.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,9 +37,14 @@ jobs:
3737
steps:
3838
- name: Checkout
3939
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0
40+
41+
- name: Prepare Python
42+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
43+
with:
44+
cache: 'pip' # caching pip dependencies
4045

4146
- name: Install dependencies
42-
run: pip3 install -r ./tools/release/requirements.txt
47+
run: pip install -r ./tools/release/requirements.txt
4348

4449
- name: Extract Tag from branch name
4550
run: |

.github/workflows/release_prepare.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,14 @@ jobs:
2727
CXX: clang++-14
2828
steps:
2929
- uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v3.6.0
30-
30+
31+
- name: Prepare Python
32+
uses: actions/setup-python@0a5c61591373683505ea898e09a3ea4f39ef2b9c # v5.0.0
33+
with:
34+
cache: 'pip' # caching pip dependencies
35+
3136
- name: Install dependencies
32-
run: pip3 install -r ./tools/release/requirements.txt
37+
run: pip install -r ./tools/release/requirements.txt
3338

3439
- name: Update source code versions
3540
run: ./tools/release/update_versions.py

.python-version

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

0 commit comments

Comments
 (0)