Skip to content

Commit

Permalink
Fix github action
Browse files Browse the repository at this point in the history
  • Loading branch information
xiachenrui committed Dec 22, 2024
1 parent 331b34f commit acab695
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
- name: Test with pytest
run: |
pytest --cov --cov-report=xml --continue-on-collection-errors -n 4
pytest --cov --cov-report=xml --continue-on-collection-errors
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4
Expand Down
8 changes: 4 additions & 4 deletions tests/test_cls.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@

def get_adata() -> sc.AnnData:
adata = sc.datasets.visium_sge("V1_Breast_Cancer_Block_A_Section_1")
# random sample 500 cells
# adata = adata[np.random.choice(adata.obs.index, 500), :].copy()
# sample first 500 cells
adata = adata[:500, :]
adata.layers["counts"] = adata.X.copy()
adata.obs["cell_type"] = np.random.choice(["a", "b", "c"], adata.n_obs).tolist()
adata.obs_names_make_unique()
Expand All @@ -18,8 +18,8 @@ def get_adata() -> sc.AnnData:

def get_adata_2() -> sc.AnnData:
adata = sc.datasets.visium_sge("V1_Breast_Cancer_Block_A_Section_2")
# random sample 600 cells
# adata = adata[np.random.choice(adata.obs.index, 600), :].copy()
# sample first 600 cells
adata = adata[:600, :]
adata.layers["counts"] = adata.X.copy()
adata.obs["cell_type"] = np.random.choice(["a", "b", "c"], adata.n_obs).tolist()
adata.obs_names_make_unique()
Expand Down

0 comments on commit acab695

Please sign in to comment.