-
Notifications
You must be signed in to change notification settings - Fork 15
86 lines (72 loc) · 2.37 KB
/
Copy pathCI.yaml
File metadata and controls
86 lines (72 loc) · 2.37 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
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
name: CI
on:
push:
branches:
- "main"
pull_request:
branches:
- "main"
schedule:
- cron: "0 0 * * *"
jobs:
test:
name: ${{ matrix.os }}, 🐍=${{ matrix.python-version }}, 👁️=${{ matrix.openeye }}, ∫=${{ matrix.integration }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
#os: [ubuntu-latest, macOS-latest]
python-version: ["3.10"]
openeye: [true]
integration: [true]
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
steps:
- uses: actions/checkout@v3
- name: Install with OpenEye Toolkits
if: ${{ matrix.openeye == true }}
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: devtools/conda-envs/test-env.yaml
channel-priority: "flexible"
#extra-specs: |
# python=${{ matrix.python-version }}
- name: Install with AmberTools
if: ${{ matrix.openeye == false }}
uses: mamba-org/provision-with-micromamba@main
with:
environment-file: devtools/conda-envs/no_openeye.yaml
extra-specs: |
python=${{ matrix.python-version }}
- name: License OpenEye
shell: bash -l {0}
if: ${{ matrix.openeye == true }}
run: |
echo "${SECRET_OE_LICENSE}" > ${OE_LICENSE}
python -c "from openeye import oechem; assert oechem.OEChemIsLicensed()"
env:
SECRET_OE_LICENSE: ${{ secrets.OE_LICENSE }}
- name: Install Package
shell: bash -l {0}
run: |
python setup.py develop --no-deps
- name: Conda Environment Information
shell: bash -l {0}
run: |
conda info
conda list
#- name: Run Tests
# shell: bash -l {0}
# run: |
# pytest -v --cov=openff --cov-config=setup.cfg openff/bespokefit/tests --cov-report=xml
#- name: Codecov
# uses: codecov/codecov-action@v3.1.1
# with:
# file: ./coverage.xml
# fail_ci_if_error: false
- name: Run Integration Tests
if: ${{ matrix.integration == true }}
shell: bash -l {0}
run: |
openff-bespoke executor run --smiles "CC" --target-torsion '[C:1]-[C:2]' --workflow-file openff/bespokefit/data/test/miscellaneous/fast-psi4-workflow.yaml