Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
test-script: |
cp -r ${{ github.workspace }}/test ./test
cp ${{ github.workspace }}/pyproject.toml ./pyproject.toml
python -m pip install -r ./test/requirements.txt
python -m pip install '.[tests]'
python -m test
pypi-token: ${{ secrets.pypi_token }}
github-user: patrick-kidger
Expand Down
26 changes: 24 additions & 2 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install -r ./test/requirements.txt

python -m pip install '.[tests]'

- name: Checks with pre-commit
uses: pre-commit/action@v3.0.1
Expand All @@ -33,3 +32,26 @@ jobs:
run: |
python -m pip install .
python -m test

# Run a test with JAX tracer leak detection enabled
run-test-tracer:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Set up Python 3.13
uses: actions/setup-python@v2
with:
python-version: "3.13"

- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install '.[tests]'

- name: Test tracer functionality
run: |
python -m pip install .
export JAX_CHECK_TRACER_LEAKS=1
python -m test --tracer
2 changes: 1 addition & 1 deletion CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Now make your changes. Make sure to include additional tests if necessary.
Next verify the tests all pass:

```bash
pip install -r test/requirements.txt
pip install -e '.[tests]'
pytest
```

Expand Down
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ docs = [
"mkdocstrings-python==1.16.8",
"pymdown-extensions==10.14.3"
]
tests = [
"beartype>=0.22.5",
"jaxlib>=0.6.2",
"optax>=0.2.6",
"pytest>=9.0.1",
"scipy>=1.15.3",
"tqdm>=4.67.1",
]

[tool.hatch.build]
include = ["diffrax/*"]
Expand Down
6 changes: 0 additions & 6 deletions test/requirements.txt

This file was deleted.