-
Notifications
You must be signed in to change notification settings - Fork 23
79 lines (68 loc) · 1.97 KB
/
beta.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
name: Tests against betas
on:
workflow_dispatch:
schedule:
- cron: "0 3 * * *"
defaults:
run:
shell: bash -l {0}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os:
- macos-latest
- ubuntu-latest
python-version:
- "3.10"
- "3.11"
- "3.12"
openeye:
- true
- false
env:
OE_LICENSE: ${{ github.workspace }}/oe_license.txt
COV: --cov=openff/interchange --cov-report=xml --cov-config=setup.cfg --cov-append
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Install conda environment
uses: mamba-org/setup-micromamba@v2
with:
environment-file: devtools/conda-envs/test_env.yaml
condarc: |
channels:
- openeye/label/rc
- conda-forge/label/openmm_rc
- conda-forge/label/mdtraj_rc
- conda-forge/label/openff-toolkit_rc
- conda-forge/label/openff-interchange_rc
- openeye
- conda-forge
create-args: >-
python=${{ matrix.python-version }}
- name: Install package
run: |
micromamba remove --force openff-interchange openff-interchange-base
python -m pip install . plugins/
- name: License OpenEye
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: Run mypy
continue-on-error: true
run: mypy --show-error-codes --namespace-packages -p "openff.interchange"
- name: Run all tests
if: always()
run: python -m pytest -v $COV openff/interchange/
- name: Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml