Add draft of Test action #7
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: AWS GPU | |
on: | |
push: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: [self-hosted, aws-gpu] # aws-gpu == label in cirun.yml | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Nvidia SMI sanity check | |
run: nvidia-smi | |
- name: Create conda environment | |
run: | | |
conda create -yn anndata-gpu python=3.10 cupy | |
conda activate anndata-gpu | |
pip install .[dev,test] | |
- name: Conda list | |
run: conda list | |
- name: Run test | |
run: python -c 'import anndata, cupy; cupyx.scipy.sparse.random(100, 50, format="csr")' |