Skip to content

Commit

Permalink
another fix to custom dataloder test and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
ori-kron-wis committed Aug 12, 2024
1 parent de1f30b commit 49fa01e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ def pytest_collection_modifyitems(config, items):
if not run_internet and ("internet" in item.keywords):
item.add_marker(skip_internet)

# All tests marked with `pytest.custom.dataloader` get skipped unless
# All tests marked with `pytest.mark.custom.dataloader` get skipped unless
# `--custom.dataloader-tests` passed
if not run_custom_dataloader and ("custom.dataloader" in item.keywords):
item.add_marker(skip_custom_dataloader)
Expand Down
9 changes: 6 additions & 3 deletions tests/dataloaders/test_custom_dataloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,11 @@

import sys

# the next should be ready for improting
sys.path.insert(0, "/cellxgene-census/api/python/cellxgene_census/src")
# should be ready for importing the cloned branch on a remote machine that runs github action
sys.path.insert(
0,
"/home/runner/work/scvi-tools/scvi-tools/" "cellxgene-census/api/python/cellxgene_census/src",
)
sys.path.insert(0, "src")

import cellxgene_census
Expand All @@ -18,7 +21,7 @@
from scvi.data import synthetic_iid


@pytest.custom.dataloader
@pytest.mark.custom.dataloader
def test_custom_dataloader(save_path):
# this test checks the local custom dataloder made by CZI and run several tests with it
census = cellxgene_census.open_soma(census_version="stable")
Expand Down

0 comments on commit 49fa01e

Please sign in to comment.