File tree Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Expand file tree Collapse file tree 3 files changed +5
-11
lines changed Original file line number Diff line number Diff line change 97
97
with :
98
98
python-version : " 3.12"
99
99
100
- - name : Show available python binaries
100
+ - name : Test raw version command
101
101
run : |
102
- which python || echo "python not found"
103
- which python3 || echo "python3 not found"
104
- which python3.12 || echo "python3.12 not found"
105
- ls -l $(dirname $(which python3)) | grep python
102
+ python3.12 --version
106
103
107
104
- name : Setup Node per .nvmrc in GUI
108
105
uses : actions/setup-node@v5
Original file line number Diff line number Diff line change 87
87
with :
88
88
python-version : " 3.12"
89
89
90
- - name : Show available python binaries
90
+ - name : Test raw version command
91
91
run : |
92
- which python || echo "python not found"
93
- which python3 || echo "python3 not found"
94
- which python3.12 || echo "python3.12 not found"
95
- ls -l $(dirname $(which python3)) | grep python
92
+ python3.12 --version
96
93
97
94
- name : Setup Node per .nvmrc in GUI
98
95
uses : actions/setup-node@v5
Original file line number Diff line number Diff line change @@ -125,7 +125,7 @@ if [ "$INSTALL_PYTHON_VERSION" = "" ]; then
125
125
else
126
126
echo " Python $INSTALL_PYTHON_VERSION is requested"
127
127
INSTALL_PYTHON_PATH=python${INSTALL_PYTHON_VERSION}
128
- echo $( $INSTALL_PYTHON_PATH --version) " hello"
128
+ echo $( $INSTALL_PYTHON_PATH --version 2>&1 ) " hello"
129
129
PY3_VER=$( $INSTALL_PYTHON_PATH --version | cut -d ' ' -f2)
130
130
PYTHON_MAJOR_VER=$( echo " $PY3_VER " | cut -d' .' -f1)
131
131
PYTHON_MINOR_VER=$( echo " $PY3_VER " | cut -d' .' -f2)
You can’t perform that action at this time.
0 commit comments