Skip to content

Commit fdf5552

Browse files
committed
Run tests twice (with and without cloudpathlib)
- Mark additional s3 test with to skip
1 parent 8e678c0 commit fdf5552

2 files changed

Lines changed: 8 additions & 1 deletion

File tree

.github/workflows/ci.yaml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,11 @@ jobs:
4141
uses: astral-sh/setup-uv@v6
4242
with:
4343
python-version: ${{ matrix.python-version }}
44-
- name: Run tests
44+
45+
- name: Run tests without cloudpathlib
46+
run: |
47+
uv run pytest tests
48+
- name: Run tests with cloudpathlib
4549
run: |
4650
uv run --all-extras pytest \
4751
--junitxml=pytest.xml \

tests/test_indexing.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,9 @@ def test_find_bids_datasets():
5252
assert datasets_no_derivatives == expected_datasets_no_derivatives
5353

5454

55+
@pytest.mark.skipif(
56+
not cloudpathlib_is_available(), reason="cloudpathlib not installed"
57+
)
5558
def test_find_bids_datasets_s3():
5659
root = "s3://openneuro.org"
5760
datasets = list(islice(indexing.find_bids_datasets(root, maxdepth=2), 10))

0 commit comments

Comments
 (0)