Skip to content

Add Python 3.11 to test matrix #166

Add Python 3.11 to test matrix

Add Python 3.11 to test matrix #166

Workflow file for this run

name: Lint & test
on: [push, pull_request]
jobs:
linters:
name: lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: pre-commit
run: |
python -m pip install pre-commit
pre-commit run --show-diff-on-failure --all-files
tests:
name: pytest
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- uses: abatilo/actions-poetry@v2
- run: poetry install
- run: poetry run nox -r --non-interactive --python=python