Skip to content

Commit 7cab4be

Browse files
committed
Add test_compile stage to CI
1 parent 0764d5e commit 7cab4be

File tree

1 file changed

+18
-3
lines changed

1 file changed

+18
-3
lines changed

.github/workflows/tests.yml

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
run: uv pip list
5252

5353
- name: Test with PyTest
54-
run: uv run pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml -k "not logits_match"
54+
run: uv run pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml --non-marked-only
5555

5656
- name: Upload coverage reports to Codecov
5757
uses: codecov/codecov-action@v5
@@ -73,7 +73,22 @@ jobs:
7373
- name: Show installed packages
7474
run: uv pip list
7575
- name: Test with PyTest
76-
run: RUN_SLOW=1 uv run pytest -v -rsx -n 2 -k "logits_match"
76+
run: RUN_SLOW=1 uv run pytest -v -rsx -n 2 -m "logits_match"
77+
78+
test_torch_compile:
79+
runs-on: ubuntu-latest
80+
steps:
81+
- uses: actions/checkout@v4
82+
- name: Set up Python
83+
uses: astral-sh/setup-uv@v5
84+
with:
85+
python-version: "3.10"
86+
- name: Install dependencies
87+
run: uv pip install -r requirements/required.txt -r requirements/test.txt
88+
- name: Show installed packages
89+
run: uv pip list
90+
- name: Test with PyTest
91+
run: uv run pytest -v -rsx -n 2 -m "compile"
7792

7893
minimum:
7994
runs-on: ubuntu-latest
@@ -88,4 +103,4 @@ jobs:
88103
- name: Show installed packages
89104
run: uv pip list
90105
- name: Test with pytest
91-
run: uv run pytest -v -rsx -n 2 -k "not logits_match"
106+
run: uv run pytest -v -rsx -n 2 --non-marked-only

0 commit comments

Comments
 (0)