Skip to content

Commit

Permalink
Test against pre-release dependencies (scverse#2478)
Browse files Browse the repository at this point in the history
* Test against pre-release dependencies

adapted from https://github.com/scverse/anndata/blob/main/.azure-pipelines.yml

* fix pre-commit
  • Loading branch information
grst authored May 3, 2023
1 parent 08be4e9 commit 6295596
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ variables:
ANNDATA_DEV: no
RUN_COVERAGE: no
TEST_EXTRA: 'test-full'
PRERELEASE_DEPENDENCIES: no

jobs:
- job: PyTest
Expand All @@ -23,6 +24,8 @@ jobs:
python.version: '3.9'
ANNDATA_DEV: yes
RUN_COVERAGE: yes
PRERELEASE_DEPENDENCIES: yes

steps:
- task: UsePythonVersion@0
inputs:
Expand All @@ -48,6 +51,14 @@ jobs:
pip install pytest-cov wheel
pip install .[dev,$(TEST_EXTRA)]
displayName: 'Install dependencies'
condition: eq(variables['PRERELEASE_DEPENDENCIES'], 'no')
- script: |
python -m pip install --pre --upgrade pip
pip install --pre pytest-cov wheel
pip install --pre .[dev,$(TEST_EXTRA)]
displayName: 'Install dependencies release candidates'
condition: eq(variables['PRERELEASE_DEPENDENCIES'], 'yes')
- script: |
pip install -v "anndata[dev,test] @ git+https://github.com/scverse/anndata"
Expand Down

0 comments on commit 6295596

Please sign in to comment.