Skip to content

Commit

Permalink
Merge pull request #27 from martinvonk/py312
Browse files Browse the repository at this point in the history
Add Python 3.12 test suite
  • Loading branch information
martinvonk authored Sep 25, 2023
2 parents 4373fe5 + 10606d2 commit 3227053
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 3 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/tests.yml
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,34 +16,47 @@ jobs:
python: "3.8"
os: ubuntu-latest
toxenv: py38
experimental: false
- name: Test suite with py39-ubuntu
python: "3.9"
os: ubuntu-latest
toxenv: py39
experimental: false
- name: Test suite with py310-ubuntu
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.9"
os: ubuntu-latest
toxenv: type
experimental: false
- name: Formatting with black + isort
python: "3.9"
os: ubuntu-latest
toxenv: format
experimental: false
- name: Linting with flake8 + ruff
python: "3.9"
os: ubuntu-latest
toxenv: lint
experimental: false
- name: Codacy Coverage Report
python: "3.9"
os: ubuntu-latest
toxenv: coverage
experimental: false

name: ${{ matrix.name }}
env:
Expand Down
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ classifiers = [
'Programming Language :: Python :: 3.9',
'Programming Language :: Python :: 3.10',
'Programming Language :: Python :: 3.11',
'Programming Language :: Python :: 3.12',
'Topic :: Scientific/Engineering :: Hydrology',
'Intended Audience :: Science/Research',
"License :: OSI Approved :: MIT License",
Expand Down Expand Up @@ -62,7 +63,7 @@ line-length = 88
legacy_tox_ini = """
[tox]
requires = tox>=4
env_list = format, type, lint, py{38,39,310,311}
env_list = format, type, lint, py38, py39, py310, py311, py312
[testenv]
description = run unit tests
Expand All @@ -75,8 +76,8 @@ legacy_tox_ini = """
basepython = python3.9
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 3227053

Please sign in to comment.