-
Notifications
You must be signed in to change notification settings - Fork 14
44 lines (39 loc) · 1 KB
/
Copy pathbuild.yml
File metadata and controls
44 lines (39 loc) · 1 KB
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
name: build
on:
push:
branches:
- 'master'
pull_request:
branches:
- master
jobs:
build-linux:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: install
run: |
pip install -U pip
eval "$(conda shell.bash hook)"
conda env create --file environment.yml
conda activate sparse-ho-env
pip install -e .
- name: test
run: |
eval "$(conda shell.bash hook)"
conda activate sparse-ho-env
pip install pytest pytest-cov coverage numpydoc codecov
rm -rf coverage .coverage
NUMBA_DISABLE_JIT=1 pytest -lv --cov-report term-missing sparse_ho --cov=sparse_ho --cov-config .coveragerc
codecov
- name: codecov
uses: codecov/codecov-action@v1
with:
files: .coveragerc
flags: unittests
fail_ci_if_error: true
verbose: true