-
Notifications
You must be signed in to change notification settings - Fork 15
68 lines (58 loc) · 1.63 KB
/
ci.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
59
60
61
62
63
64
65
66
67
68
name: "CI"
on:
pull_request:
branches:
- main
push:
branches:
- main
schedule:
# At 07:00 UTC on Monday and Thursday.
- cron: "0 7 * * 1,4"
concurrency:
# Cancel out any previous workflows within the same PR
group: "${{ github.ref }}-${{ github.head_ref }}-${{ github.workflow }}"
cancel-in-progress: True
defaults:
run:
shell: bash -l {0}
jobs:
tests:
if: "github.repository == 'openforcefield/protein-ligand-benchmark'"
runs-on: ${{ matrix.OS }}-latest
name: "tests"
strategy:
fail-fast: False
matrix:
os: ['ubuntu', 'macos']
python-versions: [3.8, 3.9]
steps:
- uses: actions/checkout@v3
- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: True
use-mamba: True
python-version: ${{ matrix.python-version }}
miniforge-variant: Mambaforge
environment-file: environment.yml
activate-environment: plbenchmark
- name: "install"
run: python setup.py develop --no-deps
- name: "test imports"
run: |
python -Ic "import plbenchmark"
- name: "environment information"
run: |
mamba info -a
mamba list
- name: "run tests"
run: |
pytest -v --nbval-lax --cov=plbenchmark --cov-report=xml plbenchmark/tests/ examples/ docs/examples/
- name: "codecov"
if: "github.event != 'schedule'"
uses: codecov/codecov-action@v2
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: coverage.xml
fail_ci_if_error: True
verbose: True