Skip to content

Commit aa3ed4e

Browse files
committed
Test Python 3.12 in Cygwin on CI
As well as Python 3.9 as before.
1 parent 8576534 commit aa3ed4e

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
@@ -7,6 +7,14 @@ jobs:
77
runs-on: windows-latest
88

99
strategy:
10+
matrix:
11+
python-version: ["3.9", "3.12"]
12+
include:
13+
- python-version: "3.9"
14+
package-suffix: "39"
15+
- python-version: "3.12"
16+
package-suffix: "312"
17+
1018
fail-fast: false
1119

1220
env:
@@ -30,7 +38,12 @@ jobs:
3038
- name: Install Cygwin
3139
uses: cygwin/cygwin-install-action@v5
3240
with:
33-
packages: python39 python39-pip python39-virtualenv git wget
41+
packages: >
42+
python${{ matrix.package-suffix }}
43+
python${{ matrix.package-suffix }}-pip
44+
python${{ matrix.package-suffix }}-virtualenv
45+
git
46+
wget
3447
add-to-path: false # No need to change $PATH outside the Cygwin environment.
3548

3649
- name: Arrange for verbose output
@@ -58,7 +71,7 @@ jobs:
5871
5972
- name: Set up virtualenv
6073
run: |
61-
python3.9 -m venv --without-pip .venv
74+
python${{ matrix.python-version }} -m venv --without-pip .venv
6275
echo 'BASH_ENV=.venv/bin/activate' >>"$GITHUB_ENV"
6376
6477
- name: Bootstrap pip in virtualenv

0 commit comments

Comments
 (0)