Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use Git LFS for test data #58

Merged
merged 3 commits into from
Nov 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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()
Loading