Skip to content

Commit

Permalink
TST: add CPython 3.13 to regular test matrix
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Oct 9, 2024
1 parent d532a48 commit 3e64131
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 8 deletions.
30 changes: 22 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,36 @@ jobs:
name: ${{ matrix.os }}, Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- windows-latest
python-version:
- '3.10'
- '3.11'
- '3.12'
test-args: [--with 'viscm>=0.10']
- '3.13'
test-args: [viscm>=0.10]
venv-loc: [bin]

include:
- os: ubuntu-20.04
python-version: '3.10'
venv-loc: bin
install-args: --resolution=lowest-direct

fail-fast: false
- os: windows-latest
python-version: '3.10'
venv-loc: Scripts
- os: windows-latest
python-version: '3.11'
venv-loc: Scripts
- os: windows-latest
python-version: '3.12'
venv-loc: Scripts
- os: windows-latest
python-version: '3.13'
venv-loc: Scripts

concurrency:
group: ${{ github.ref }}-${{ matrix.os }}-${{ matrix.python-version }}-build
Expand All @@ -51,15 +64,16 @@ jobs:
run: |
uv venv --python ${{ matrix.python-version }}
uv pip install -e . ${{ matrix.install-args }}
uv pip install -r requirements/dev.txt ${{ matrix.test-args }}
- run: uv pip list

- name: Test package
shell: bash # for windows-compat
run: |
uv run --with-requirements=requirements/dev.txt ${{ matrix.test-args }} \
pytest --color=yes --mpl \
--cov --cov-config=pyproject.toml --cov-report=term-missing
source .venv/${{matrix.venv-loc}}/activate
pytest --color=yes --mpl \
--cov --cov-config=pyproject.toml --cov-report=term-missing
- name: Upload coverage
shell: bash # for windows-compat
Expand All @@ -73,7 +87,7 @@ jobs:
matrix:
python-version:
- '3.10'
- '3.12'
- '3.13'

runs-on: ubuntu-latest

Expand Down
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ classifiers = [
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Visualization",
"Topic :: Utilities",
"Framework :: Matplotlib",
Expand Down

0 comments on commit 3e64131

Please sign in to comment.