You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+10-22Lines changed: 10 additions & 22 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ This file provides guidance to Claude Code (claude.ai/code) when working with co
6
6
7
7
### Running Tests
8
8
```bash
9
-
# Run all tests
9
+
# Run all tests (excluding GPU tests by default)
10
10
pytest
11
11
12
12
# Run tests with coverage
@@ -17,8 +17,16 @@ pytest test/test_model.py
17
17
18
18
# Run a specific test function
19
19
pytest test/test_model.py::test_model_creation
20
+
21
+
# Run GPU tests (requires GPU hardware and cuPDLPx installation)
22
+
pytest --run-gpu
23
+
24
+
# Run only GPU tests
25
+
pytest -m gpu --run-gpu
20
26
```
21
27
28
+
**GPU Testing**: Tests that require GPU hardware (e.g., cuPDLPx solver) are automatically skipped by default since CI machines typically don't have GPUs. To run GPU tests locally, use the `--run-gpu` flag. The tests are automatically marked with `@pytest.mark.gpu` based on solver capabilities.
29
+
22
30
### Linting and Type Checking
23
31
```bash
24
32
# Run linter (ruff)
@@ -102,27 +110,6 @@ When modifying the codebase, maintain consistency with these patterns and ensure
102
110
* Always create a feature branch for new features or bug fixes.
103
111
* Use the github cli (gh) to interact with the Github repository.
104
112
105
-
### GitHub Claude Code Integration
106
-
107
-
This repository includes Claude Code GitHub Actions for automated assistance:
0 commit comments