File tree Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Expand file tree Collapse file tree 3 files changed +19
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
runs-on : ubuntu-latest
9
9
env :
10
- PYVER : 3.11
10
+ PYVER : ' 3.11.3 '
11
11
FLUTTER : ' 3.7.10'
12
12
container :
13
13
image : ubuntu:18.04
@@ -17,13 +17,27 @@ jobs:
17
17
steps :
18
18
- name : Install dependencies
19
19
run : |
20
+ export PYVER_MINOR=${PYVER%.*}
21
+ echo "PYVER_MINOR: $PYVER_MINOR"
20
22
apt-get update
21
23
apt-get install -qq software-properties-common libnotify-dev libayatana-appindicator3-dev patchelf
22
24
add-apt-repository -y ppa:git-core/ppa
23
25
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
25
27
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
27
41
28
42
- uses : actions/checkout@v3
29
43
Original file line number Diff line number Diff line change 7
7
8
8
runs-on : macos-latest
9
9
env :
10
- PYVER : 3.11
10
+ PYVER : ' 3.11.3 '
11
11
MACOSX_DEPLOYMENT_TARGET : " 10.15"
12
12
13
13
steps :
Original file line number Diff line number Diff line change 7
7
8
8
runs-on : windows-latest
9
9
env :
10
- PYVER : 3.11
10
+ PYVER : ' 3.11.3 '
11
11
12
12
steps :
13
13
- uses : actions/checkout@v3
You can’t perform that action at this time.
0 commit comments