Skip to content

Commit e4e1499

Browse files
committed
Add basic pytest
1 parent 9ef8a3a commit e4e1499

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false # don’t stop the matrix if one Python version fails
1414
matrix:
15-
python-version: ["3.9", "3.10", "3.11", "3.12"]
15+
python-version: ["3.9", "3.10", "3.11"]
1616

1717
steps:
1818
- name: Check out code

pyproject.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,4 +68,6 @@ module-rgx = "([a-z_][a-z0-9_]*)"
6868
generated-members = "torch.*,nn.*"
6969

7070
[tool.pytest.ini_options]
71-
adopts = "--jaxtyping-packages=beartype.beartype"
71+
testpaths = ["tests"]
72+
addopts = "--jaxtyping-packages=beartype.beartype"
73+
python_files = "test_*.py"

tests/test_manifolds.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_basic():
2+
assert True

0 commit comments

Comments
 (0)