mirror of
https://github.com/github/codeql-action.git
synced 2025-12-08 00:38:30 +08:00
Compare commits
2 Commits
v3.30.1
...
daverlo/te
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
068ef74bd6 | ||
|
|
afde6a46b1 |
23
.github/workflows/python-deps.yml
vendored
23
.github/workflows/python-deps.yml
vendored
@@ -2,16 +2,16 @@ name: Test Python Package Installation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: [main, v1]
|
|
||||||
pull_request:
|
pull_request:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
|
|
||||||
test-setup-python-scripts:
|
test-setup-python-scripts:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ${{ matrix.os }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
os: [ubuntu-latest,windows-latest,macos-latest]
|
||||||
include:
|
include:
|
||||||
- test_dir: python-setup/tests/pipenv/requests-2
|
- test_dir: python-setup/tests/pipenv/requests-2
|
||||||
test_script: $GITHUB_WORKSPACE/python-setup/tests/check_requests_123.sh 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_dir: python-setup/tests/requirements/non-standard-location
|
||||||
test_script: test -z $LGTM_INDEX_IMPORT_PATH
|
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:
|
steps:
|
||||||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
@@ -71,6 +53,7 @@ jobs:
|
|||||||
echo -e '\n\n\n\n\n' && sleep 0.5
|
echo -e '\n\n\n\n\n' && sleep 0.5
|
||||||
cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
|
cd $GITHUB_WORKSPACE/${{ matrix.test_dir }}
|
||||||
$GITHUB_WORKSPACE/python-setup/auto_install_packages.py /opt/hostedtoolcache/CodeQL/0.0.0-20200826/x64/codeql/
|
$GITHUB_WORKSPACE/python-setup/auto_install_packages.py /opt/hostedtoolcache/CodeQL/0.0.0-20200826/x64/codeql/
|
||||||
|
/bin/true
|
||||||
- name: Setup for extractor
|
- name: Setup for extractor
|
||||||
run: |
|
run: |
|
||||||
echo $CODEQL_PYTHON
|
echo $CODEQL_PYTHON
|
||||||
|
|||||||
@@ -18,9 +18,6 @@ python3 -m pip install --user --upgrade pip setuptools wheel
|
|||||||
python2 -m pip install --user virtualenv
|
python2 -m pip install --user virtualenv
|
||||||
python3 -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
|
# We install poetry with pip instead of the recommended way, since the recommended way
|
||||||
# caused some problem since `poetry run` gives output like:
|
# caused some problem since `poetry run` gives output like:
|
||||||
#
|
#
|
||||||
|
|||||||
Reference in New Issue
Block a user