-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #269 from github/update-v1-c8b8c041
Merge main into v1
- Loading branch information
Showing
13 changed files
with
211 additions
and
44 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
.github/workflows/python-deps.yml → .github/workflows/python-deps-linux.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Test Python Package Installation | ||
name: Test Python Package Installation on Linux | ||
|
||
on: | ||
push: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
name: Test Python Package Installation on Windows | ||
|
||
|
||
on: | ||
push: | ||
branches: [main, v1] | ||
pull_request: | ||
|
||
jobs: | ||
|
||
test-setup-python-scripts: | ||
runs-on: windows-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- test_dir: python-setup/tests/pipenv/requests-2 | ||
python_version: 2 | ||
- test_dir: python-setup/tests/pipenv/requests-3 | ||
python_version: 3 | ||
|
||
- test_dir: python-setup/tests/poetry/requests-2 | ||
python_version: 2 | ||
- test_dir: python-setup/tests/poetry/requests-3 | ||
python_version: 3 | ||
|
||
- test_dir: python-setup/tests/requirements/requests-2 | ||
python_version: 2 | ||
- test_dir: python-setup/tests/requirements/requests-3 | ||
python_version: 3 | ||
|
||
- test_dir: python-setup/tests/setup_py/requests-2 | ||
python_version: 2 | ||
- test_dir: python-setup/tests/setup_py/requests-3 | ||
python_version: 3 | ||
|
||
steps: | ||
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Initialize CodeQL | ||
uses: github/codeql-action/init@v1 | ||
with: | ||
languages: python | ||
|
||
- name: Test Auto Package Installation | ||
run: | | ||
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\install_tools.ps1" | ||
powershell -File $cmd | ||
cd $Env:GITHUB_WORKSPACE\\${{ matrix.test_dir }} | ||
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\auto_install_packages.py C:\\hostedtoolcache\\windows\\CodeQL\\0.0.0-20200826\\x64\\codeql | ||
- name: Setup for extractor | ||
run: | | ||
echo $Env:CODEQL_PYTHON | ||
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\tests\\from_python_exe.py $Env:CODEQL_PYTHON | ||
- name: Verify packages installed | ||
run: | | ||
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1" | ||
powershell -File $cmd ${{ matrix.python_version }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
{ | ||
"bundleVersion": "codeql-bundle-20200826" | ||
"bundleVersion": "codeql-bundle-20201008" | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
#! /usr/bin/pwsh | ||
|
||
py -2 -m pip install --user --upgrade pip setuptools wheel | ||
py -3 -m pip install --user --upgrade pip setuptools wheel | ||
|
||
# virtualenv is a bit nicer for setting up virtual environment, since it will provide up-to-date versions of | ||
# pip/setuptools/wheel which basic `python3 -m venv venv` won't | ||
py -2 -m pip install --user virtualenv | ||
py -3 -m pip install --user virtualenv | ||
|
||
# poetry 1.0.10 has error (https://github.com/python-poetry/poetry/issues/2711) | ||
py -3 -m pip install --user poetry!=1.0.10 | ||
py -3 -m pip install --user pipenv |
Oops, something went wrong.