Compare commits

...

2 Commits

Author SHA1 Message Date
David Verdeguer
068ef74bd6 Test on all os 2020-10-01 11:26:53 +02:00
David Verdeguer
afde6a46b1 Test 2020-09-29 17:12:41 +02:00
2 changed files with 3 additions and 23 deletions

View File

@@ -2,16 +2,16 @@ name: Test Python Package Installation
on:
push:
branches: [main, v1]
pull_request:
jobs:
test-setup-python-scripts:
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest,windows-latest,macos-latest]
include:
- test_dir: python-setup/tests/pipenv/requests-2
test_script: $GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 2
@@ -37,24 +37,6 @@ jobs:
- test_dir: python-setup/tests/requirements/non-standard-location
test_script: test -z $LGTM_INDEX_IMPORT_PATH
# All of these should fail
- test_dir: python-setup/tests/pipenv/python-version-not-available
test_script: /bin/false
- test_dir: python-setup/tests/poetry/python-version-not-available
test_script: /bin/false
- test_dir: python-setup/tests/requirements/invalid-package
test_script: /bin/false
- test_dir: python-setup/tests/requirements/invalid-version
test_script: /bin/false
- test_dir: python-setup/tests/setup_py/invalid-version
test_script: /bin/false
- test_dir: python-setup/tests/setup_py/invalid-file
test_script: /bin/false
- test_dir: python-setup/tests/setup_py/extra-require-not-installed
test_script: $GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 3
- test_dir: python-setup/tests/setup_py/wrong-python-version
test_script: /bin/false
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
@@ -71,6 +53,7 @@ jobs:
echo -e '\n\n\n\n\n' && sleep 0.5
cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
$GITHUB_WORKSPACE/python-setup/auto_install_packages.py /opt/hostedtoolcache/CodeQL/0.0.0-20200826/x64/codeql/
/bin/true
- name: Setup for extractor
run: |
echo $CODEQL_PYTHON

View File

@@ -18,9 +18,6 @@ python3 -m pip install --user --upgrade pip setuptools wheel
python2 -m pip install --user virtualenv
python3 -m pip install --user virtualenv
# venv is required for installation of poetry or pipenv (I forgot which)
sudo apt-get install -y python3-venv
# We install poetry with pip instead of the recommended way, since the recommended way
# caused some problem since `poetry run` gives output like:
#