Skip to content

Commit

Permalink
python3: add to github workflow matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
yonran committed Oct 17, 2023
1 parent e418201 commit 3116611
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,23 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "pypy-3.8", "pypy-3.9"]
os: [ubuntu-20.04, ubuntu-22.04, macOS-latest, windows-latest]
include:
- python-version: "2.7"
os: "ubuntu-20.04"
- python-version: "2.7"
os: "ubuntu-22.04"
steps:
- uses: actions/[email protected]
- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }} (github action)
if: matrix.python-version != '2.7'
uses: actions/[email protected]
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Set up Python ${{ matrix.python-version }} (apt-get)
if: matrix.python-version == '2.7'
# since actions/python-versions removed 2.7 from versions-manifest.json
# and also deleted all the python 2.7 binary artifacts,
# we have to apt-get install python2
Expand Down

0 comments on commit 3116611

Please sign in to comment.