From ed77a650254928cfbc09e89678bcea823beed90a Mon Sep 17 00:00:00 2001 From: ori-kron-wis Date: Thu, 10 Oct 2024 16:31:52 +0300 Subject: [PATCH] fix the c.dataloders test --- .github/workflows/test_linux_custom_dataloader.yml | 4 +++- tests/dataloaders/test_custom_dataloader.py | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test_linux_custom_dataloader.yml b/.github/workflows/test_linux_custom_dataloader.yml index 7aec2f1c67..20f8645079 100644 --- a/.github/workflows/test_linux_custom_dataloader.yml +++ b/.github/workflows/test_linux_custom_dataloader.yml @@ -35,7 +35,7 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - python: ["3.11"] + python: ["3.10"] name: integration @@ -60,6 +60,8 @@ jobs: python -m pip install s3fs python -m pip install torchdata python -m pip install psutil + python -m pip install cellxgene-census + python -m pip install lamindb - name: Install Specific Branch of Repository env: diff --git a/tests/dataloaders/test_custom_dataloader.py b/tests/dataloaders/test_custom_dataloader.py index b8034bb6af..50ad7d6665 100644 --- a/tests/dataloaders/test_custom_dataloader.py +++ b/tests/dataloaders/test_custom_dataloader.py @@ -1,3 +1,5 @@ +from __future__ import annotations + import os from pprint import pprint @@ -11,7 +13,7 @@ @pytest.mark.custom_dataloader -def test_czi_custom_dataloader(save_path="."): +def test_czi_custom_dataloader(save_path): # local branch with fix only for this test import sys @@ -235,7 +237,7 @@ def test_czi_custom_dataloader(save_path="."): @pytest.mark.custom_dataloader -def test_lamindb_custom_dataloader(save_path="."): +def test_lamindb_custom_dataloader(save_path): # initialize a local lamin database os.system("lamin init --storage ~/scdataloader2 --schema bionty") # os.system("lamin close")