Skip to content

Add Python 3.11 to test matrix #162

Add Python 3.11 to test matrix

Add Python 3.11 to test matrix #162

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@v3
with:
python-version: "3.11"
- name: pre-commit
run: |
python -m pip install pre-commit
pre-commit run --show-diff-on-failure --all-files
pytest:
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 }}
- name: Ensure poetry
uses: abatilo/actions-poetry@v2
- uses: wntrblm/nox@2023.04.22
- name: Run matrix of tests
run: nox --no-venv --non-interactive --python ${{ matrix.python-version }}