mirror of
https://github.com/github/codeql-action.git
synced 2026-05-04 12:50:14 +00:00
Test on all os
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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:
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user