Skip to content

Commit

Permalink
Merge pull request #58 from CSOgroup/test-data-git-lfs
Browse files Browse the repository at this point in the history
Use Git LFS for test data
  • Loading branch information
marcovarrone authored Nov 7, 2024
2 parents 5f5533f + 92d79d4 commit db98e5b
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tests/_data/codex_adata.h5ad filter=lfs diff=lfs merge=lfs -text
3 changes: 3 additions & 0 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:

steps:
- uses: actions/checkout@v3
with:
lfs: true # Ensure LFS files are fetched

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
Expand Down
3 changes: 3 additions & 0 deletions tests/_data/codex_adata.h5ad
Git LFS file not shown
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ def adata() -> ad.AnnData:

@pytest.fixture()
def codex_adata() -> ad.AnnData:
adata = sc.read("tests/_data/codex_adata.h5ad", backup_url="https://figshare.com/ndownloader/files/46832722")
adata = sc.read("tests/_data/codex_adata.h5ad")
return adata[adata.obs["sample"].isin(["BALBc-1", "MRL-5"])].copy()

0 comments on commit db98e5b

Please sign in to comment.