Skip to content

Update python-checks.yml: correct python version comparison #3

Update python-checks.yml: correct python version comparison

Update python-checks.yml: correct python version comparison #3

Workflow file for this run

name: Python type checks and tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -e .[test]
- name: Type check with mypy
if: ${{ matrix.python-version != 3.9 }}
run: |
mypy
- name: Test with pytest
run: |
pytest -n auto