Skip to content

Commit

Permalink
CI: Fix matrix setup to properly install the right Python release.
Browse files Browse the repository at this point in the history
  • Loading branch information
scoder committed Aug 27, 2023
1 parent a4852b1 commit 470bc15
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,10 @@ jobs:
fail-fast: false

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

include:
- python_version: "3.12-dev"
- python-version: "3.12-dev"
allowed_failure: true

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

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

include:
- python_version: "3.12-dev"
- python-version: "3.12-dev"
allowed_failure: true
exclude:
- python_version: "2.7"
- python-version: "2.7"
os: windows-latest

runs-on: ${{ matrix.os }}
Expand All @@ -174,7 +174,7 @@ jobs:
uses: actions/setup-python@v4
if: startsWith(matrix.python-version, '3.')
with:
python-version: ${{ matrix.python_version }}
python-version: ${{ matrix.python-version }}

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

0 comments on commit 470bc15

Please sign in to comment.