From 068ef74bd6548b8cde7ddfb26f1fbcc9278e9c13 Mon Sep 17 00:00:00 2001 From: David Verdeguer Date: Thu, 1 Oct 2020 11:24:36 +0200 Subject: [PATCH] Test on all os --- .github/workflows/python-deps.yml | 21 ++------------------- python-setup/install_tools.sh | 3 --- 2 files changed, 2 insertions(+), 22 deletions(-) diff --git a/.github/workflows/python-deps.yml b/.github/workflows/python-deps.yml index a148db67d..0aac4259e 100644 --- a/.github/workflows/python-deps.yml +++ b/.github/workflows/python-deps.yml @@ -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 diff --git a/python-setup/install_tools.sh b/python-setup/install_tools.sh index 5179a5c24..b5a6e8dce 100755 --- a/python-setup/install_tools.sh +++ b/python-setup/install_tools.sh @@ -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: #