Skip to content

Commit df406c6

Browse files
automated python version
1 parent aa02a1a commit df406c6

File tree

1 file changed

+14
-3
lines changed

1 file changed

+14
-3
lines changed

.github/workflows/test.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,12 +13,17 @@ jobs:
1313
API_KEY: ci-test-key
1414

1515
steps:
16-
# Optional: cache wheels to speed up numpy / scipy installs
1716
- uses: actions/checkout@v4
1817

18+
- name: Read Python version from .python-version
19+
id: python-version
20+
run: |
21+
PY_VERSION=$(cat .python-version)
22+
echo "version=$PY_VERSION" >> $GITHUB_OUTPUT
23+
1924
- uses: actions/setup-python@v5
2025
with:
21-
python-version: "3.11"
26+
python-version: ${{ steps.python-version.outputs.version }}
2227

2328
- uses: actions/cache@v4
2429
with:
@@ -64,9 +69,15 @@ jobs:
6469
echo "APP_NAME=$APP_NAME"
6570
echo "APP_NAME=$APP_NAME" >> $GITHUB_ENV
6671
72+
- name: Read Python version from .python-version
73+
id: python-version
74+
run: |
75+
PY_VERSION=$(cat .python-version)
76+
echo "version=$PY_VERSION" >> $GITHUB_OUTPUT
77+
6778
- uses: actions/setup-python@v5
6879
with:
69-
python-version: "3.12" # this should align with this repo's .python-version file
80+
python-version: ${{ steps.python-version.outputs.version }}
7081

7182
- name: Install Heroku CLI
7283
run: |

0 commit comments

Comments
 (0)