Skip to content

Commit

Permalink
added ci
Browse files Browse the repository at this point in the history
  • Loading branch information
Intron7 committed Aug 3, 2023
1 parent ca2baa9 commit 59c1ddc
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .cirun.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
runners:
- name: aws-gpu-runner
cloud: aws
instance_type: g4dn.xlarge
machine_image: ami-067a4ba2816407ee9
region: eu-north-1
preemptible: false
workflow: .github/workflows/test-gpu.yml
labels:
- cirun-aws-gpu
50 changes: 50 additions & 0 deletions .github/workflows/test-gpu.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
name: AWS GPU

on:
push:
# branches: [main]
pull_request:
types:
- labeled
- opened
- synchronize

# Cancel the job if new commits are pushed
# https://stackoverflow.com/questions/66335225/how-to-cancel-previous-runs-in-the-pr-when-you-push-new-commitsupdate-the-curre
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

jobs:
test:
name: GPU Tests
if: ${{ github.event_name == 'push' || contains(github.event.pull_request.labels.*.name, 'run-gpu-ci') }}
runs-on: "cirun-aws-gpu--${{ github.run_id }}"
defaults:
run:
shell: bash -el {0}
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Nvidia SMI sanity check
run: nvidia-smi


- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "1.3.1-0"
environment-file: ci/rsc_test_env.yml
init-shell: >-
bash
generate-run-shell: false

- name: Install rapids-singlecell
run: pip install .[test]

- name: Mamba list
run: micromamba list

- name: Run test
run: pytest
18 changes: 18 additions & 0 deletions ci/rsc_test_env.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: rapids_singlecell
channels:
- rapidsai
- nvidia
- conda-forge
dependencies:
- cudf=23.06
- cuml=23.06
- cugraph=23.06
- python=3.10
- cudatoolkit=11.8
- cudnn
- cutensor
- cusparselt
- pip
- pip:
- scanpy
- omnipath
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,9 @@ doc = [
"scanpydoc[typehints,theme]>=0.9.4",
"readthedocs-sphinx-ext",
]
test = [
"pytest"
]

[project.urls]
Documentation = "https://rapids-singlecell.readthedocs.io"
Expand Down

0 comments on commit 59c1ddc

Please sign in to comment.