Skip to content

Commit

Permalink
add python 3.12 test suite
Browse files Browse the repository at this point in the history
  • Loading branch information
martinvonk committed Oct 4, 2023
1 parent 3b6e9a3 commit 114ed35
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 3 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
jobs:
test:
runs-on: ${{ matrix.os }}
continue-on-error: ${{ matrix.experimental }}
strategy:
fail-fast: false
matrix:
Expand All @@ -15,22 +16,32 @@ jobs:
python: "3.10"
os: ubuntu-latest
toxenv: py310
experimental: false
- name: Test suite with py311-ubuntu
python: "3.11"
os: ubuntu-latest
toxenv: py311
experimental: false
- name: Test suite with py312-ubuntu
python: "3.12-dev"
os: ubuntu-latest
toxenv: py312
experimental: true
- name: Type check with mypy
python: "3.10"
os: ubuntu-latest
toxenv: type
experimental: false
- name: Formatting with black + isort
python: "3.10"
os: ubuntu-latest
toxenv: format
experimental: false
- name: Linting with flake8 + ruff
python: "3.10"
os: ubuntu-latest
toxenv: lint
experimental: false

name: ${{ matrix.name }}
env:
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ pythonpath = ["src"]
legacy_tox_ini = """
[tox]
requires = tox>=4
env_list = format, type, lint, py{310,311}
env_list = format, type, lint, py{310,311,312}
[testenv]
description = run unit tests
Expand All @@ -82,8 +82,8 @@ legacy_tox_ini = """
basepython = python3.10
extras = formatting
commands =
black src
isort src
black src --check --verbose
isort src --check
[testenv:type]
description = run type checks
Expand Down

0 comments on commit 114ed35

Please sign in to comment.