-
Notifications
You must be signed in to change notification settings - Fork 154
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add GPU CI Signed-off-by: zethson <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Add draft of Test action Signed-off-by: zethson <[email protected]> * Remove python specification Signed-off-by: zethson <[email protected]> * Switch to mamba Signed-off-by: zethson <[email protected]> * Add shell check Co-authored-by: Isaac Virshup <[email protected]> * Switch to mamba Signed-off-by: zethson <[email protected]> * micromamba list Signed-off-by: zethson <[email protected]> * Add shell Signed-off-by: zethson <[email protected]> * Add environment-name Signed-off-by: zethson <[email protected]> * rename environment-name Signed-off-by: zethson <[email protected]> * specify python * Remove env name * Don't make a shell * add env name * Get git info so version is specified right * proper cirun label * Add gpu mark, --only-gpu argument * Start tests * Add gpu tests to ci * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Better lazy importing * Fix test skipping * Views * Update conftest * Basic concatenation support + bedtime * `.raw` copys from VRAM to RAM (#1078) * `.raw` copys from VRAM to RAM * Update anndata/_core/raw.py Co-authored-by: Isaac Virshup <[email protected]> * Update anndata/_core/raw.py Co-authored-by: Isaac Virshup <[email protected]> * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update anndata/_core/raw.py Co-authored-by: Isaac Virshup <[email protected]> --------- Co-authored-by: Isaac Virshup <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> * Better gpu test * Deduplicate some test params * Support IO * Fixes related to cupy/cupy#7757 * coverage * Cancel jobs if new commits are pushed + whitespace to trigger precomit * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Update GPU CI name + paralellize GPU CI * Simplify pytest setup * Fix typo * Release note * Change run rules for GPU CI --------- Signed-off-by: zethson <[email protected]> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Isaac Virshup <[email protected]> Co-authored-by: Severin Dicks <[email protected]> Co-authored-by: Philipp A <[email protected]>
- Loading branch information
1 parent
0c4c0b0
commit 8b1a7e4
Showing
17 changed files
with
562 additions
and
70 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
runners: | ||
- name: aws-gpu-runner | ||
cloud: aws | ||
instance_type: g4dn.xlarge | ||
machine_image: ami-0678adbdcb4c3a662 | ||
preemptible: false | ||
workflow: .github/workflows/test-gpu.yml | ||
labels: | ||
- cirun-aws-gpu |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
name: AWS GPU | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
workflow_dispatch: | ||
|
||
# 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: | ||
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-name: anndata-gpu-ci | ||
create-args: >- | ||
python=3.10 | ||
cupy | ||
numba | ||
pytest | ||
pytest-cov | ||
pytest-xdist | ||
init-shell: >- | ||
bash | ||
generate-run-shell: false | ||
|
||
- name: Install AnnData | ||
run: pip install .[dev,test,gpu] | ||
|
||
- name: Mamba list | ||
run: micromamba list | ||
|
||
- name: Run test | ||
run: pytest -m gpu --cov --cov-report=xml --cov-context=test -n 4 | ||
|
||
- uses: codecov/codecov-action@v3 | ||
with: | ||
flags: gpu-tests |
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
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
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
Oops, something went wrong.