Skip to content

Commit

Permalink
CI: test CI for Python 2.7
Browse files Browse the repository at this point in the history
  • Loading branch information
pawel-kow committed Feb 18, 2024
1 parent 16e98c4 commit eb16696
Showing 1 changed file with 19 additions and 18 deletions.
37 changes: 19 additions & 18 deletions .github/workflows/test-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,32 +15,33 @@ jobs:
matrix:
include:
- python-version: 2.7
os: ubuntu-18.04
- python-version: 3.5
os: ubuntu-20.04
- python-version: 3.6
os: ubuntu-20.04
- python-version: 3.7
os: ubuntu-22.04
- python-version: 3.8
os: ubuntu-22.04
- python-version: 3.9
os: ubuntu-22.04
- python-version: "3.10"
os: ubuntu-22.04
- python-version: "3.11"
os: ubuntu-22.04
- python-version: "3.12"
os: ubuntu-22.04
# - python-version: 3.6
# os: ubuntu-20.04
# - python-version: 3.7
# os: ubuntu-22.04
# - python-version: 3.8
# os: ubuntu-22.04
# - python-version: 3.9
# os: ubuntu-22.04
# - python-version: "3.10"
# os: ubuntu-22.04
# - python-version: "3.11"
# os: ubuntu-22.04
# - python-version: "3.12"
# os: ubuntu-22.04

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
- name: Set up Python ${{ matrix.python-version }} != 2.7
if: ${{ matrix.python-version != '2.7' }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- name: Set up Python 2.7
if: ${{ matrix.python-version == '2.7' }}
run: sudo ln -sf /usr/bin/python2.7 /usr/bin/python
- name: Install dependencies
run: |
python -m pip install --upgrade pip
Expand Down

0 comments on commit eb16696

Please sign in to comment.