Skip to content

Commit ec23a4d

Browse files
use the Python version from .tool-versions
1 parent 0da3f88 commit ec23a4d

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/run-regression-tests.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,11 +43,17 @@ jobs:
4343
env:
4444
PYTHON_CONFIGURE_OPTS: --enable-shared
4545

46+
# Use grep to find the line beginning with "python"
47+
- name: Get Python version from file
48+
run: |
49+
PYTHON_VERSION=$(grep "^python==\K.*" .tool-versions)
50+
echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
51+
4652
- name: setup venv
4753
uses: actions/checkout@v5
4854
- uses: actions/setup-python@v6
4955
with:
50-
# python-version: '3.13.5'
56+
python-version: '${{ env.PYTHON_VERSION }}'
5157
cache: 'poetry' # caching poetry dependencies
5258
- run: poetry install
5359

0 commit comments

Comments
 (0)