Skip to content

Commit 0de6f11

Browse files
authored
Factor out torch autograd checks into separate tests and skip on PR workflow runs (#304)
* Factoring out spherical precompute torch autograd tests and marking slow * Factoring out Wigner precompute torch autograd tests and marking slow * Add slow test mark metadata * Skip slow tests for pull-request triggered Actions jobs * Correct skip slow specification in workflow
1 parent 922dae6 commit 0de6f11

File tree

4 files changed

+401
-346
lines changed

4 files changed

+401
-346
lines changed

.github/workflows/tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@ jobs:
5454
python -m pip install --upgrade pip
5555
pip install .[tests]
5656
57+
- name: Run tests (skipping slow)
58+
if: github.event_name == 'pull_request'
59+
run: |
60+
pytest -v --cov-report=xml --cov=s2fft --cov-config=.coveragerc -m "not slow"
61+
5762
- name: Run tests
63+
if: github.event_name != 'pull_request'
5864
run: |
5965
pytest -v --cov-report=xml --cov=s2fft --cov-config=.coveragerc
6066

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,7 @@ filterwarnings = [
100100
"ignore::DeprecationWarning",
101101
"ignore:FutureWarning",
102102
]
103+
markers = ["slow: mark test as slow"]
103104

104105
[tool.ruff]
105106
fix = true

0 commit comments

Comments
 (0)