Skip to content

Commit 2ebc770

Browse files
committed
Run Python auto package installation CI job for Python 2 on Windows 2019
Python 2 isn't supported on Windows Server 2022, which is now `windows-latest`.
1 parent b8047e5 commit 2ebc770

File tree

1 file changed

+20
-14
lines changed

1 file changed

+20
-14
lines changed

.github/workflows/python-deps.yml

+20-14
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Test Python Package Installation on Linux and Mac
1+
name: Test Python Package Installation
22

33
on:
44
push:
@@ -12,11 +12,11 @@ jobs:
1212
test-setup-python-scripts:
1313
runs-on: ${{ matrix.os }}
1414
strategy:
15-
fail-fast: false
16-
matrix:
17-
os: [ubuntu-latest, macos-latest]
18-
python_deps_type: [pipenv, poetry, requirements, setup_py]
19-
python_version: [2, 3]
15+
fail-fast: false
16+
matrix:
17+
os: [ubuntu-latest, macos-latest]
18+
python_deps_type: [pipenv, poetry, requirements, setup_py]
19+
python_version: [2, 3]
2020

2121
env:
2222
PYTHON_DEPS_TYPE: ${{ matrix.python_deps_type }}
@@ -64,9 +64,9 @@ jobs:
6464
test-setup-python-scripts-non-standard-location:
6565
runs-on: ${{ matrix.os }}
6666
strategy:
67-
fail-fast: false
68-
matrix:
69-
os: [ubuntu-latest, macos-latest]
67+
fail-fast: false
68+
matrix:
69+
os: [ubuntu-latest, macos-latest]
7070

7171
steps:
7272
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
@@ -108,12 +108,18 @@ jobs:
108108
test -z $LGTM_INDEX_IMPORT_PATH
109109
110110
test-setup-python-scripts-windows:
111-
runs-on: windows-latest
111+
runs-on: ${{ matrix.os }}
112112
strategy:
113-
fail-fast: false
114-
matrix:
115-
python_deps_type: [pipenv, poetry, requirements, setup_py]
116-
python_version: [2, 3]
113+
fail-fast: false
114+
matrix:
115+
python_deps_type: [pipenv, poetry, requirements, setup_py]
116+
python_version: [2, 3]
117+
include:
118+
- python_version: 3
119+
os: windows-latest
120+
# Python 2 isn't supported on the `windows-latest` image, so use `windows-2019`.
121+
- python_version: 2
122+
os: windows-2019
117123

118124
env:
119125
PYTHON_DEPS_TYPE: ${{ matrix.python_deps_type }}

0 commit comments

Comments
 (0)