Skip to content
6 changes: 4 additions & 2 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,9 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
# Exclude Windows for now since it causes MPI issues
# os: ["ubuntu-latest", "macos-latest", "windows-latest"]
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.10", "3.11", "3.12", "3.13"]

steps:
Expand All @@ -35,7 +37,7 @@ jobs:
run: pip list
- name: Run tests with pytest & nox
run: |
nox -s test-${{ matrix.python-version }}
nox -s tests-${{ matrix.python-version }}
# You only need to upload code coverage once to codecov unless you have a
# more complex build that you need coverage for.
# - name: Upload coverage to Codecov
Expand Down
6 changes: 3 additions & 3 deletions noxfile.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import nox

@nox.session(python=["3.10", "3.11", "3.12", "3.13"])
def test(session):

@nox.session(python=["3.10", "3.11", "3.12", "3.13"])
def tests(session):
# install
session.install(".[test]")
session.install(".[tests]")

# Run tests
session.run("pytest")
4 changes: 3 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ dependencies = [
"mpi4py",
"neighpy",
"numpy",
"openmpi",
"schwimmbad",
"scipy",
"scikit-learn",
Expand All @@ -50,7 +51,7 @@ dependencies = [
[project.optional-dependencies]
lint = ["mypy", "ruff"]
notebook = ["jupyterlab"]
test = ["pytest"]
tests = ["mpi4py", "openmpi", "pytest"]

[project.urls]
homepage = "https://tc1d.readthedocs.io/"
Expand Down Expand Up @@ -124,3 +125,4 @@ jupyterlab = ">=4.4.7,<5"
ruff = ">=0.12.12,<0.13"
hatchling = ">=1.27.0,<2"
mypy = ">=1.17.1,<2"
pip = ">=25.2,<26"
3 changes: 1 addition & 2 deletions src/tc1d/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
import importlib.metadata
from .tc1d import init_params, prep_model

# Versioning
import importlib.metadata

__version__ = importlib.metadata.version("tc1d")