Skip to content

Commit 4967386

Browse files
committed
Test Python 3.12 in Cygwin on CI
This is in addition to testing Python 3.9, as before.
1 parent c8ebc8b commit 4967386

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

.github/workflows/cygwin-test.yml

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ jobs:
1010
runs-on: windows-latest
1111

1212
strategy:
13+
matrix:
14+
python-version: ["3.9", "3.12"]
15+
include:
16+
- python-version: "3.9"
17+
package-suffix: "39"
18+
- python-version: "3.12"
19+
package-suffix: "312"
20+
1321
fail-fast: false
1422

1523
env:
@@ -33,7 +41,12 @@ jobs:
3341
- name: Install Cygwin
3442
uses: cygwin/cygwin-install-action@v5
3543
with:
36-
packages: python39 python39-pip python39-virtualenv git wget
44+
packages: >
45+
python${{ matrix.package-suffix }}
46+
python${{ matrix.package-suffix }}-pip
47+
python${{ matrix.package-suffix }}-virtualenv
48+
git
49+
wget
3750
add-to-path: false # No need to change $PATH outside the Cygwin environment.
3851

3952
- name: Arrange for verbose output
@@ -61,7 +74,7 @@ jobs:
6174
6275
- name: Set up virtualenv
6376
run: |
64-
python3.9 -m venv --without-pip .venv
77+
python${{ matrix.python-version }} -m venv --without-pip .venv
6578
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
6679
6780
- name: Bootstrap pip in virtualenv

0 commit comments

Comments
 (0)