Skip to content

Commit 99b21fa

Browse files
committed
Update test CI
1 parent 9f03228 commit 99b21fa

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

.github/scripts/run_benchmarks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ def main():
1414
pytest.main(
1515
[
1616
"-m",
17-
"benchmark",
17+
"benchmark and not cloud",
1818
"--benchmark-save-data",
1919
f"--benchmark-json={args.output}",
2020
"--benchmark-time-unit=ms",

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,16 +42,16 @@ jobs:
4242
with:
4343
python-version: ${{ matrix.python-version }}
4444

45-
- name: Run tests without cloudpathlib
45+
- name: Run non-cloud tests
4646
run: |
4747
uv run pytest \
48-
-m "not cloud" \
48+
-m "not cloud and not benchmark" \
4949
--junitxml=pytest-cloudless.xml \
5050
--cov-report=xml:coverage.xml \
51-
--cov bids2table \
51+
--cov=bids2table \
5252
tests
5353
54-
- name: Run tests with cloudpathlib
54+
- name: Run cloud tests
5555
run: |
5656
uv run --extra cloud pytest \
5757
-m "cloud" \

tests/benchmarks/test_index.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,8 @@ def _teardown(index_fpath: Path):
6666
)
6767

6868

69-
# @pytest.mark.benchmark
69+
@pytest.mark.benchmark
70+
@pytest.mark.cloud
7071
def test_openneuro(benchmark: BenchmarkFixture, tmp_path: Path) -> None:
7172
"""Benchmark b2t2 with a subset of datasets on OpenNeuro."""
7273
workers = 4

0 commit comments

Comments
 (0)