File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 44 quality-check :
55 runs-on : ubuntu-latest
66 steps :
7- - uses : actions/checkout@v3
8- - uses : actions/setup-python@v4
7+ - uses : actions/checkout@v6
8+ - uses : actions/setup-python@v6
99 with :
1010 python-version : " 3.11"
1111 - name : Install dependencies
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ case "$OSTYPE" in
88 ;;
99 * )
1010 echo " Running ${me} on linux / mac / unix"
11- PYTHON_EXECUTABLE=python3
11+ if command -v python3 > /dev/null 2>&1 ; then
12+ PYTHON_EXECUTABLE=python3
13+ else
14+ PYTHON_EXECUTABLE=python
15+ fi
1216esac
1317
1418${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ case "$OSTYPE" in
88 ;;
99 * )
1010 echo " Running ${me} on linux / mac / unix"
11- PYTHON_EXECUTABLE=python3
11+ if command -v python3 > /dev/null 2>&1 ; then
12+ PYTHON_EXECUTABLE=python3
13+ else
14+ PYTHON_EXECUTABLE=python
15+ fi
1216esac
1317
1418${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
Original file line number Diff line number Diff line change @@ -8,7 +8,11 @@ case "$OSTYPE" in
88 ;;
99 * )
1010 echo " Running ${me} linux / mac / unix"
11- PYTHON_EXECUTABLE=python3
11+ if command -v python3 > /dev/null 2>&1 ; then
12+ PYTHON_EXECUTABLE=python3
13+ else
14+ PYTHON_EXECUTABLE=python
15+ fi
1216esac
1317
1418${PYTHON_EXECUTABLE} " ${BASH_SOURCE[0]% .* } .py" " $@ "
You can’t perform that action at this time.
0 commit comments