File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Test Python Package Installation on Linux
1+ name : Test Python Package Installation on Linux and Mac
22
33on :
44 push :
88jobs :
99
1010 test-setup-python-scripts :
11- runs-on : ubuntu-latest
11+ runs-on : ${{ matrix.os }}
1212 strategy :
1313 fail-fast : false
1414 matrix :
15+ os : [ubuntu-latest, macos-latest]
1516 include :
1617 - test_dir : python-setup/tests/pipenv/requests-2
1718 test_script : $GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
5253 $GITHUB_WORKSPACE/python-setup/install_tools.sh
5354 echo -e '\n\n\n\n\n' && sleep 0.5
5455 cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
55- find /opt/hostedtoolcache/CodeQL -path "*x64/codeql" -exec $GITHUB_WORKSPACE/python-setup/auto_install_packages.py {} \;
56+ unameOut="$(uname -s)"
57+ case "${unameOut}" in
58+ Linux*) basePath="/opt";;
59+ Darwin*) basePath="/Users/runner";;
60+ esac
61+ echo ${basePath}
62+ find ${basePath}/hostedtoolcache/CodeQL -path "*x64/codeql" -exec $GITHUB_WORKSPACE/python-setup/auto_install_packages.py {} \;
5663 - name : Setup for extractor
5764 run : |
5865 echo $CODEQL_PYTHON
Original file line number Diff line number Diff line change @@ -18,9 +18,6 @@ python3 -m pip install --user --upgrade pip setuptools wheel
1818python2 -m pip install --user virtualenv
1919python3 -m pip install --user virtualenv
2020
21- # venv is required for installation of poetry or pipenv (I forgot which)
22- sudo apt-get install -y python3-venv
23-
2421# We install poetry with pip instead of the recommended way, since the recommended way
2522# caused some problem since `poetry run` gives output like:
2623#
You can’t perform that action at this time.
0 commit comments