Skip to content

Commit 76363c3

Browse files
committed
TST: fix minimal requirement spec and add CPython 3.12 and 3.13 to CI
1 parent 7e19769 commit 76363c3

File tree

2 files changed

+13
-9
lines changed

2 files changed

+13
-9
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,14 @@ jobs:
1111
strategy:
1212
matrix:
1313
python-version:
14+
- "3.13"
15+
- "3.12"
1416
- "3.11"
1517
- "3.10"
1618
- "3.9"
1719
pyqt-dependency:
18-
- "PyQt6"
19-
- "PySide6"
20+
- "PyQt"
21+
- "PySide"
2022

2123
steps:
2224
- uses: "actions/checkout@v3"
@@ -30,17 +32,19 @@ jobs:
3032
run: |
3133
# Project dependencies from pyproject.toml
3234
# NOTE: Also builds viscm. How do we avoid this?
33-
pip install .
35+
pip install .[${{ matrix.pyqt-dependency }}]
3436
3537
# Test dependencies
36-
pip install pytest pytest-cov pytest-qt pytest-xvfb ${{ matrix.pyqt-dependency }}
38+
pip install pytest pytest-cov pytest-qt pytest-xvfb
3739
# pytest-qt CI dependencies: https://pytest-qt.readthedocs.io/en/latest/troubleshooting.html#github-actions
3840
sudo apt update
3941
sudo apt install -y \
4042
xvfb libegl1 \
4143
libxkbcommon-x11-0 libxcb-icccm4 libxcb-image0 libxcb-keysyms1 libxcb-randr0 libxcb-render-util0 libxcb-xinerama0 libxcb-xfixes0 x11-utils \
4244
libxcb-cursor0
4345
46+
- run: pip list
47+
4448
- name: "Run tests"
4549
run: "make test"
4650
env:

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@ classifiers = [
1515
"Programming Language :: Python :: 3",
1616
]
1717

18-
requires-python = "~=3.9"
18+
requires-python = ">=3.9"
1919
dependencies = [
20-
"numpy ~=1.22",
21-
"matplotlib ~=3.5",
22-
"colorspacious ~=1.1",
23-
"scipy ~=1.8",
20+
"numpy >=1.22",
21+
"matplotlib >=3.5",
22+
"colorspacious >=1.1",
23+
"scipy >=1.8",
2424
]
2525

2626
[project.optional-dependencies]

0 commit comments

Comments
 (0)