Test on all os

This commit is contained in:
David Verdeguer
2020-10-01 11:24:36 +02:00
parent afde6a46b1
commit 068ef74bd6
2 changed files with 2 additions and 22 deletions
+2 -19
View File
@@ -7,10 +7,11 @@ on:
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
@@ -36,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
-3
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:
#