Skip to content

Commit 8355f95

Browse files
committed
update python env var
1 parent 8f53b0a commit 8355f95

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,12 +92,14 @@ jobs:
9292
run: |
9393
python -c "import sys; print(sys.version)"
9494
whereis python
95+
whereis python3
9596
9697
- name: Force Python 3.11
9798
run: |
9899
sudo update-alternatives --install /usr/local/bin/python python /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
99100
sudo update-alternatives --install /usr/local/bin/python3 python3 /opt/hostedtoolcache/Python/3.11.13/x64/bin/python 1
100101
echo "/usr/local/bin:$PATH" >> $GITHUB_PATH
102+
echo "PYTHON_VERSION=3.11" >> $GITHUB_ENV
101103
sudo update-alternatives --config python3
102104
103105

0 commit comments

Comments
 (0)