Skip to content

Commit

Permalink
Now tests on GitHub Actions will run also against these version: 3.4,…
Browse files Browse the repository at this point in the history
… 3.5. Version 3.7 is no longer present in macos-latest, so I moved to an older version of macos
  • Loading branch information
andreafrancia committed Apr 27, 2024
1 parent 35ffdce commit cd4dab5
Showing 1 changed file with 27 additions and 18 deletions.
45 changes: 27 additions & 18 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,25 +10,34 @@ on:

jobs:
build:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
include:
- { os: ubuntu-latest, python_version: '3.4' }
- { os: ubuntu-latest, python_version: '3.5' }
- { os: ubuntu-latest, python_version: '3.6' }
- { os: ubuntu-latest, python_version: '3.7' }
- { os: ubuntu-latest, python_version: '3.8' }
- { os: ubuntu-latest, python_version: '3.9' }
- { os: ubuntu-latest, python_version: '3.10' }
- { os: ubuntu-latest, python_version: '3.11' }
- { os: ubuntu-latest, python_version: '3.12' }
- { os: macos-11, python_version: '3.7' }
- { os: macos-latest, python_version: '3.8' }
- { os: macos-latest, python_version: '3.9' }
- { os: macos-latest, python_version: '3.10' }
- { os: macos-latest, python_version: '3.11' }
- { os: macos-latest, python_version: '3.12' }

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install dependencies
run: python -m pip install -r requirements-dev.txt -r requirements.txt
- name: Check Types
run: ./scripts/check-types
if: matrix.python-version != '2.7'
- name: Run tests
run: python -m pytest
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: python -m pip install -r requirements-dev.txt -r requirements.txt
- run: ./scripts/check-types
- run: python -m pytest

0 comments on commit cd4dab5

Please sign in to comment.