-
Notifications
You must be signed in to change notification settings - Fork 51
108 lines (94 loc) · 2.98 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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
name: CI
on:
merge_group:
pull_request:
branches:
- "main"
schedule:
# nightly tests
- cron: "0 0 * * *"
push:
branches:
- main
concurrency:
group: "${{ github.workflow }}-${{ github.ref }}"
cancel-in-progress: true
jobs:
test:
name: Test on ubuntu-latest, Python ${{ matrix.python-version }}, OpenMM ${{ matrix.openmm }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.9, "3.10"]
openmm: ["8.0", "7.7"]
include:
- openmm: "dev"
python-version: "3.10"
env:
OPENMM: ${{ matrix.openmm }}
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
steps:
- uses: actions/checkout@v2
- name: Additional info about the build
shell: bash
run: |
uname -a
df -h
ulimit -a
- name: Setup micromamba dev
if: ${{ matrix.openmm == 'dev' }}
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
channels: jaimergp/label/unsupported-cudatoolkit-shim,conda-forge/label/openmm_dev,conda-forge,openeye
channel-priority: flexible
cache-env: true
cache-downloads: true
extra-specs: |
python==${{ matrix.python-version }}
openmmtools==0.23.0
openmm==8.0.0dev3
- name: Setup micromamba
if: ${{ matrix.openmm != 'dev' }}
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: devtools/conda-envs/test_env.yaml
environment-name: test
cache-env: true
cache-downloads: true
extra-specs: |
python==${{ matrix.python-version }}
openmm==${{ matrix.openmm }}
- name: Install package
shell: bash -l {0}
run: |
python -m pip install --no-deps -v .
- name: Environment Information
shell: bash -l {0}
run: |
micromamba info
micromamba list
- name: Decrypt OpenEye license
shell: bash -l {0}
env:
OE_LICENSE_TEXT: ${{ secrets.OE_LICENSE }}
run: |
echo "${OE_LICENSE_TEXT}" > ${OE_LICENSE}
python -c "import openeye; assert openeye.oechem.OEChemIsLicensed(), 'OpenEye license checks failed!'"
- name: Test the package
shell: bash -l {0}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.S3_TEST_KEY }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.S3_TEST_SECRET }}
run: |
export TRAVIS=true
pytest -v --cov-report xml --cov=perses --durations=0 -a "not advanced" -n auto -m "not gpu_needed" perses/tests
- name: Codecov
if: ${{ github.repository == 'choderalab/perses'
&& github.event != 'schedule' }}
uses: codecov/codecov-action@v1
with:
file: ./coverage.xml
fail_ci_if_error: false