Skip to content

Commit bf20a55

Browse files
committed
Combine python deps tests workflows
1 parent 1c78971 commit bf20a55

2 files changed

Lines changed: 53 additions & 62 deletions

File tree

.github/workflows/python-deps-windows.yml

Lines changed: 0 additions & 61 deletions
This file was deleted.

.github/workflows/python-deps.yml

Lines changed: 53 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,56 @@ jobs:
7070
fi
7171
- name: Verify packages installed
7272
run: |
73-
${{ matrix.test_script }}
73+
${{ matrix.test_script }}
74+
75+
test-setup-python-scripts-windows:
76+
runs-on: windows-latest
77+
strategy:
78+
fail-fast: false
79+
matrix:
80+
include:
81+
- test_dir: python-setup/tests/pipenv/requests-2
82+
python_version: 2
83+
- test_dir: python-setup/tests/pipenv/requests-3
84+
python_version: 3
85+
86+
- test_dir: python-setup/tests/poetry/requests-2
87+
python_version: 2
88+
- test_dir: python-setup/tests/poetry/requests-3
89+
python_version: 3
90+
91+
- test_dir: python-setup/tests/requirements/requests-2
92+
python_version: 2
93+
- test_dir: python-setup/tests/requirements/requests-3
94+
python_version: 3
95+
96+
- test_dir: python-setup/tests/setup_py/requests-2
97+
python_version: 2
98+
- test_dir: python-setup/tests/setup_py/requests-3
99+
python_version: 3
100+
101+
steps:
102+
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
103+
- uses: actions/checkout@v2
104+
105+
- name: Initialize CodeQL
106+
uses: github/codeql-action/init@v1
107+
with:
108+
languages: python
109+
110+
- name: Test Auto Package Installation
111+
run: |
112+
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\install_tools.ps1"
113+
powershell -File $cmd
114+
115+
cd $Env:GITHUB_WORKSPACE\\${{ matrix.test_dir }}
116+
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\auto_install_packages.py C:\\hostedtoolcache\\windows\\CodeQL\\0.0.0-20200826\\x64\\codeql
117+
- name: Setup for extractor
118+
run: |
119+
echo $Env:CODEQL_PYTHON
120+
121+
py -3 $Env:GITHUB_WORKSPACE\\python-setup\\tests\\from_python_exe.py $Env:CODEQL_PYTHON
122+
- name: Verify packages installed
123+
run: |
124+
$cmd = $Env:GITHUB_WORKSPACE + "\\python-setup\\tests\\check_requests_123.ps1"
125+
powershell -File $cmd ${{ matrix.python_version }}

0 commit comments

Comments
 (0)