forked from FrickTobias/DBS-Pro
-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (47 loc) · 1.3 KB
/
ci_macos.yaml
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: CI MacOS
on:
pull_request:
branch:
- master
schedule:
- cron: 0 7 * * 1
jobs:
run:
name: Run pipeline
timeout-minutes: 10
runs-on: macos-latest
defaults:
run:
shell: bash -l {0}
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: testenv
auto-update-conda: false
environment-file: environment.osx-64.lock
- name: Install and check env
run: |
conda activate testenv
pip install .[dev]
conda info
conda list
dbspro --version
- name: Run flake8
run: |
conda activate testenv
flake8 src/ tests/
flake8 --select=W292 --filename '*.yaml,*.yml'
- name: Download test dataset
env:
testdata_version: "0.4"
run: |
wget -nv https://export.uppmax.uu.se/uppstore2018173/DBS-Pro-testdata-${testdata_version}.tar.gz
tar xf DBS-Pro-testdata-${testdata_version}.tar.gz
ln -s DBS-Pro-testdata-${testdata_version} testdata
- name: Run tests
run: |
conda activate testenv
# Required to make umi-tools output consistent.
export PYTHONHASHSEED=1
pytest -v tests/