Skip to content

Commit 0785308

Browse files
committed
Merge PR #1037.
2 parents 24aec00 + bde4dfd commit 0785308

File tree

3 files changed

+19
-5
lines changed

3 files changed

+19
-5
lines changed

.github/workflows/linux.yml

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
runs-on: ubuntu-latest
99
env:
10-
PYVER: 3.11
10+
PYVER: '3.11.3'
1111
FLUTTER: '3.7.10'
1212
container:
1313
image: ubuntu:18.04
@@ -17,13 +17,27 @@ jobs:
1717
steps:
1818
- name: Install dependencies
1919
run: |
20+
export PYVER_MINOR=${PYVER%.*}
21+
echo "PYVER_MINOR: $PYVER_MINOR"
2022
apt-get update
2123
apt-get install -qq software-properties-common libnotify-dev libayatana-appindicator3-dev patchelf
2224
add-apt-repository -y ppa:git-core/ppa
2325
add-apt-repository -y ppa:deadsnakes/ppa
24-
apt-get install -qq git python$PYVER-dev python$PYVER-venv
26+
apt-get install -qq git python$PYVER_MINOR-dev python$PYVER_MINOR-venv
2527
git config --global --add safe.directory "$GITHUB_WORKSPACE"
26-
ln -s `which python$PYVER` /usr/local/bin/python
28+
ln -s `which python$PYVER_MINOR` /usr/local/bin/python
29+
PYVER_TEMP=`/usr/local/bin/python --version`
30+
export PYVERINST=${PYVER_TEMP#* }
31+
echo "PYVERINST=$PYVERINST" >> $GITHUB_ENV
32+
echo "Installed python version: $PYVERINST"
33+
34+
- name: Verify Python version
35+
if: ${{ env.PYVERINST != env.PYVER }}
36+
run: |
37+
echo "Python version not compatible"
38+
echo "Installed python version: $PYVERINST"
39+
echo "Expected: $PYVER"
40+
exit 1
2741
2842
- uses: actions/checkout@v3
2943

.github/workflows/macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
runs-on: macos-latest
99
env:
10-
PYVER: 3.11
10+
PYVER: '3.11.3'
1111
MACOSX_DEPLOYMENT_TARGET: "10.15"
1212

1313
steps:

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77

88
runs-on: windows-latest
99
env:
10-
PYVER: 3.11
10+
PYVER: '3.11.3'
1111

1212
steps:
1313
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)