-
Notifications
You must be signed in to change notification settings - Fork 13
58 lines (56 loc) · 1.77 KB
/
tests.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
50
51
52
53
54
55
56
57
58
name: Tests
on:
push:
branches: [master, develop]
tags: [v*]
pull_request:
branches: [master, develop]
workflow_dispatch:
jobs:
miniconda:
name: Miniconda ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: ["ubuntu-latest", "windows-latest"]
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
channels: conda-forge,defaults
environment-file: environment.yml
python-version: 3.8
auto-activate-base: false
- shell: bash -l {0}
run: |
conda info
conda list
- name: Lint
shell: bash -l {0}
run: |
conda install flake8
python -m flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
python -m flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Run pytest
shell: bash -l {0}
run: |
pip install --upgrade pip
pip install setuptools
pip install wheel
pip install cython
pip install pandas==1.1.4
pip install -r requirements/requirements.txt
pip install -r requirements/docs.txt
pip install --upgrade pytest flake8 sphinx --user
pip install scipy --force-reinstall # for https://github.com/conda/conda/issues/6396
conda install pytest
python -m pytest tests --cov-report=xml --cov=delve -vvv
- name: Codecov
uses: codecov/[email protected]
with:
flags: unittests
env_vars: OS,PYTHON
name: codecov-umbrella
fail_ci_if_error: false
verbose: false