Skip to content

Commit fae90d0

Browse files
committed
test: add tracer-leak check
Signed-off-by: nstarman <[email protected]>
1 parent 3d25298 commit fae90d0

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/run_tests.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,26 @@ jobs:
3232
run: |
3333
python -m pip install .
3434
python -m test
35+
36+
# Run a test with JAX tracer leak detection enabled
37+
run-test-tracer:
38+
runs-on: ubuntu-latest
39+
steps:
40+
- name: Checkout code
41+
uses: actions/checkout@v2
42+
43+
- name: Set up Python 3.13
44+
uses: actions/setup-python@v2
45+
with:
46+
python-version: "3.13"
47+
48+
- name: Install dependencies
49+
run: |
50+
python -m pip install --upgrade pip
51+
python -m pip install '.[tests]'
52+
53+
- name: Test tracer functionality
54+
run: |
55+
python -m pip install .
56+
export JAX_CHECK_TRACER_LEAKS=1
57+
python -m test --tracer

0 commit comments

Comments
 (0)