-
Notifications
You must be signed in to change notification settings - Fork 10
51 lines (46 loc) · 1.32 KB
/
CI.yml
File metadata and controls
51 lines (46 loc) · 1.32 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
45
46
47
48
49
50
51
name: Continuous Integration
# adapted from openff-evaluator/.github/workflows/continuous_integration.yaml
on: push
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7"]
environ: [requirements]
steps:
- uses: actions/checkout@v2
- name: Additional info about the build
run: |
uname -a
df -h
ulimit -a
- name: Configure conda
uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
activate-environment: diffnets-test-conda
environment-file: docs/${{ matrix.environ }}.yml
auto-activate-base: false
- name: Environment Information
shell: bash -l {0}
run: |
conda info
conda list
- name: Install package
shell: bash -l {0}
run: |
python setup.py install
- name: Run tests
shell: bash -l {0}
run: |
source $CONDA/bin/activate
conda activate diffnets-test-conda
cd diffnets/tests
pytest -v --cov=../diffnets ./
# TODO: verify this works as we expect
- name: Code coverage
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: true