Skip to content

Commit 470bc15

Browse files
committed
CI: Fix matrix setup to properly install the right Python release.
1 parent a4852b1 commit 470bc15

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/ci.yml

+7-7
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ jobs:
4242
fail-fast: false
4343

4444
matrix:
45-
python_version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
45+
python-version: ["2.7", "3.5", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
4646

4747
include:
48-
- python_version: "3.12-dev"
48+
- python-version: "3.12-dev"
4949
allowed_failure: true
5050

5151
runs-on: ubuntu-20.04
@@ -57,7 +57,7 @@ jobs:
5757
uses: actions/setup-python@v4
5858
if: startsWith(matrix.python-version, '3.')
5959
with:
60-
python-version: ${{ matrix.python_version }}
60+
python-version: ${{ matrix.python-version }}
6161

6262
- name: Set up Python2 (Linux)
6363
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')
@@ -155,13 +155,13 @@ jobs:
155155
#os: [macos-10.15, windows-latest]
156156
#os: [macos-10.15, macOS-M1]
157157
os: [macos-11.0, windows-latest]
158-
python_version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
158+
python-version: ["2.7", "3.6", "3.7", "3.8", "3.9", "3.10", "3.11", "3.12-dev"]
159159

160160
include:
161-
- python_version: "3.12-dev"
161+
- python-version: "3.12-dev"
162162
allowed_failure: true
163163
exclude:
164-
- python_version: "2.7"
164+
- python-version: "2.7"
165165
os: windows-latest
166166

167167
runs-on: ${{ matrix.os }}
@@ -174,7 +174,7 @@ jobs:
174174
uses: actions/setup-python@v4
175175
if: startsWith(matrix.python-version, '3.')
176176
with:
177-
python-version: ${{ matrix.python_version }}
177+
python-version: ${{ matrix.python-version }}
178178

179179
- name: Set up Python2 (Linux)
180180
if: matrix.python-version == '2.7' && startsWith(matrix.os, 'ubuntu')

0 commit comments

Comments
 (0)