From 11b3004cee21fa9db157ec205443c490ba0f9d71 Mon Sep 17 00:00:00 2001 From: Marco Varrone Date: Thu, 7 Nov 2024 16:23:00 +0100 Subject: [PATCH 1/3] Add test data using Git LFS --- .gitattributes | 1 + tests/_data/codex_adata.h5ad | 3 +++ 2 files changed, 4 insertions(+) create mode 100644 .gitattributes create mode 100644 tests/_data/codex_adata.h5ad diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..84ac07b --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +tests/_data/codex_adata.h5ad filter=lfs diff=lfs merge=lfs -text diff --git a/tests/_data/codex_adata.h5ad b/tests/_data/codex_adata.h5ad new file mode 100644 index 0000000..0bf8296 --- /dev/null +++ b/tests/_data/codex_adata.h5ad @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:a23434e23cbfb421b2f51593eb71fe5d642c545aca705e4607a4b2a081047bd6 +size 470311644 From 6c95f98f74450b37f640cc53a4c0c34b647103af Mon Sep 17 00:00:00 2001 From: Marco Varrone Date: Thu, 7 Nov 2024 16:23:30 +0100 Subject: [PATCH 2/3] Load test data from Git LFS --- .github/workflows/test.yaml | 3 +++ tests/conftest.py | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 20f64f1..675005e 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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: diff --git a/tests/conftest.py b/tests/conftest.py index 3fec3b9..86dd1b0 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -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() From 92d79d49fdbfab52aa64ffd66328e8db7c2ceec4 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Thu, 7 Nov 2024 15:28:38 +0000 Subject: [PATCH 3/3] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- .github/workflows/test.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 675005e..6b0fe2c 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -43,7 +43,7 @@ jobs: steps: - uses: actions/checkout@v3 with: - lfs: true # Ensure LFS files are fetched + lfs: true # Ensure LFS files are fetched - name: Set up Python ${{ matrix.python }} uses: actions/setup-python@v4