Skip to content

Commit

Permalink
Merge branch 'main' into ig/change_settings_file_name
Browse files Browse the repository at this point in the history
  • Loading branch information
ilan-gold committed Feb 8, 2024
2 parents ded66f2 + f10bbde commit f5d5a57
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 11 deletions.
12 changes: 12 additions & 0 deletions .ci/gpu_ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: cupy_env
channels:
- nvidia
- conda-forge
dependencies:
- python=3.12
- cuda-version=11.8
- cupy
- numba
- pytest
- pytest-cov
- pytest-xdist
20 changes: 10 additions & 10 deletions .github/workflows/test-gpu.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,14 @@ jobs:
name: GPU Tests
needs: check
runs-on: "cirun-aws-gpu--${{ github.run_id }}"
# Setting a timeout of 30 minutes, as the AWS costs money
# At time of writing, a typical run takes about 5 minutes
timeout-minutes: 30

defaults:
run:
shell: bash -el {0}

steps:
- uses: actions/checkout@v3
with:
Expand All @@ -49,23 +54,18 @@ jobs:
- uses: mamba-org/setup-micromamba@v1
with:
micromamba-version: "1.3.1-0"
environment-name: anndata-gpu-ci
create-args: >-
python=3.11
cupy
numba
pytest
pytest-cov
pytest-xdist
environment-file: .ci/gpu_ci.yml
init-shell: >-
bash
generate-run-shell: false

- name: Install AnnData
run: pip install .[dev,test,gpu]

- name: Mamba list
run: micromamba list
- name: Env list
run: |
micromamba list
pip list
- name: Run test
run: pytest -m gpu --cov --cov-report=xml --cov-context=test -n 4
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.1.14
rev: v0.2.0
hooks:
- id: ruff
types_or: [python, pyi, jupyter]
Expand Down

0 comments on commit f5d5a57

Please sign in to comment.