Skip to content

Commit 560ff76

Browse files
authored
Merge pull request #380 from scverse/Ori-Adding-MPS-MACOS-local-tests
test: Added localy manual macos tests for mps
2 parents 9c98922 + e25929e commit 560ff76

2 files changed

Lines changed: 109 additions & 0 deletions

File tree

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
name: run notebook MACOS MPS (individual)
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
notebook:
7+
description: "Path to the notebook to run"
8+
required: true
9+
type: choice
10+
options: # not including R tutorials currently
11+
- atac/PeakVI.ipynb
12+
- atac/PoissonVI.ipynb
13+
- atac/scbasset_batch.ipynb
14+
- atac/scbasset.ipynb
15+
- dev/data_tutorial.ipynb
16+
- dev/model_user_guide.ipynb
17+
- dev/module_user_guide.ipynb
18+
- hub/cellxgene_census_model.ipynb
19+
- hub/minification.ipynb
20+
- hub/scvi_hub_intro_and_download.ipynb
21+
- hub/scvi_hub_upload_and_large_files.ipynb
22+
- multimodal/cite_scrna_integration_w_totalVI.ipynb
23+
- multimodal/MultiVI_tutorial.ipynb
24+
- multimodal/totalVI_reference_mapping.ipynb
25+
- multimodal/totalVI.ipynb
26+
- quick_start/api_overview.ipynb
27+
- quick_start/data_loading.ipynb
28+
- scbs/MethylVI_batch.ipynb
29+
- scrna/amortized_lda.ipynb
30+
- scrna/AutoZI_tutorial.ipynb
31+
- scrna/cellassign_tutorial.ipynb
32+
- scrna/contrastiveVI_tutorial.ipynb
33+
- scrna/harmonization.ipynb
34+
- scrna/linear_decoder.ipynb
35+
- scrna/query_hlca_knn.ipynb
36+
- scrna/scanvi_fix.ipynb
37+
- scrna/scarches_scvi_tools.ipynb
38+
- scrna/scVI_DE_worm.ipynb
39+
- scrna/seed_labeling.ipynb
40+
- scrna/tabula_muris.ipynb
41+
- scrna/MrVI_tutorial.ipynb
42+
- spatial/cell2location_lymph_node_spatial_tutorial.ipynb
43+
- spatial/DestVI_tutorial.ipynb
44+
- spatial/gimvi_tutorial.ipynb
45+
- spatial/stereoscope_heart_LV_tutorial.ipynb
46+
- spatial/tangram_scvi_tools.ipynb
47+
- tuning/autotune_scvi.ipynb
48+
version:
49+
description: "latest/stable/semver/branch"
50+
required: true
51+
type: string
52+
53+
jobs:
54+
notebook:
55+
uses: ./.github/workflows/run_notebook_macos.yaml
56+
with:
57+
notebook: ${{ inputs.notebook }}
58+
version: ${{ inputs.version }}
Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: run notebook
2+
3+
on:
4+
workflow_call:
5+
inputs:
6+
notebook:
7+
description: "Path to the notebook to run"
8+
required: true
9+
type: string
10+
version:
11+
description: "latest/stable/semver/branch"
12+
required: true
13+
type: string
14+
15+
jobs:
16+
notebook:
17+
runs-on: [self-hosted, macOS, X64, MPS]
18+
19+
name: macos_integration
20+
21+
timeout-minutes: 600 # lenient timeout for scbasset tutorial
22+
23+
env:
24+
OS: ${{ matrix.os }}
25+
PYTHON: ${{ matrix.python }}
26+
27+
steps:
28+
- uses: actions/checkout@v4
29+
30+
- name: Create Conda environment and install dependencies
31+
run: |
32+
conda init bash
33+
source ~/.bash_profile
34+
conda activate scvi
35+
36+
- name: Install dependencies
37+
run: |
38+
python -m pip install --upgrade pip wheel uv
39+
python -m pip install "scvi-tools[tests]"
40+
python -m pip install jax-metal
41+
python -m ipykernel install
42+
43+
- name: Run notebook
44+
run: |
45+
python -m jupyter nbconvert --execute --inplace ${{ inputs.notebook }}
46+
47+
- uses: peter-evans/create-pull-request@v5
48+
with:
49+
commit-message: run MPS ${{ inputs.notebook }}
50+
title: automated MPS update for ${{ inputs.notebook }}
51+
branch: update-mps-${{ inputs.notebook }}

0 commit comments

Comments
 (0)