Skip to content
This repository has been archived by the owner on Jan 5, 2024. It is now read-only.

Commit

Permalink
Test on Python 3.11 (#49)
Browse files Browse the repository at this point in the history
* Use composite test action

Fix use-xvfb argument

* Clean tox.ini

* Don't fail fast

* Remove old setup steps

* Clean up dev dependencies

Add pyqt5 back as a dev dep

* Try passing display env

Put back passenv in tox

* Test on Python 3.11

* Update Python versions

---------

Co-authored-by: Adam Tyson <[email protected]>
  • Loading branch information
dstansby and adamltyson authored Oct 3, 2023
1 parent 2f6ff3e commit 989f47a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,14 @@ jobs:
strategy:
fail-fast: false
matrix:
# Run all supported Python versions on linux
python-version: ["3.8", "3.9", "3.10"]
os: [ubuntu-latest]
# Test on Windows and macOS on only one OS to save time (and CI minutes)
# Run across a mixture of Python versions and operating systems
include:
- os: ubuntu-latest
python-version: "3.11"
- os: macos-latest
python-version: "3.10"
- os: windows-latest
python-version: "3.10"
python-version: "3.9"

steps:
- uses: tlambert03/setup-qt-libs@v1
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "brainreg-napari"
authors = [{name = "Adam Tyson, Stephen Lenzi", email= "[email protected]"}]
description = "Multi-atlas whole-brain microscopy registration"
readme = "README.md"
requires-python = ">=3.8.0"
requires-python = ">=3.9.0"
dynamic = ["version"]
classifiers = [
"Development Status :: 4 - Beta",
Expand All @@ -13,9 +13,9 @@ classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Operating System :: OS Independent",
]

Expand Down Expand Up @@ -67,7 +67,7 @@ build-backend = "setuptools.build_meta"
[tool.setuptools_scm]

[tool.black]
target-version = ['py38', 'py39', 'py310']
target-version = ['py39', 'py310', 'py311']
skip-string-normalization = false
line-length = 79

Expand Down
1 change: 0 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ isolated_build = True

[gh-actions]
python =
3.8: py38
3.9: py39
3.10: py310
3.11: py311
Expand Down

0 comments on commit 989f47a

Please sign in to comment.