-
Notifications
You must be signed in to change notification settings - Fork 13
49 lines (39 loc) · 1.15 KB
/
python-package.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: Python package
on: [pull_request]
defaults:
run:
# for conda env activation
shell: bash -l {0}
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9"]
steps:
- uses: actions/checkout@v2
- name: Setup mamba
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: test-env.yaml
cache-downloads: true
channels: conda-forge, bioconda, defaults
extra-specs: |
python=${{ matrix.python-version }}
- name: Run black manually
run: |
black --diff --verbose ./
# - name: Install dependencies
# run: |
# sudo apt-get install libhdf5-dev
# pip install -U setuptools>=40.1 wheel 'cmake<3.20' pytest
# pip install $(pwd)/scanpy-scripts
# # python -m pip install $(pwd)/scanpy --no-deps --ignore-installed -vv
- name: Run unit tests
run: |
# needed for __version__ to be available
pip install . --no-deps --ignore-installed
pytest --doctest-modules -v ./
- name: Test with bats
run: |
./scanpy-scripts-tests.bats