File tree Expand file tree Collapse file tree 2 files changed +87
-0
lines changed
Expand file tree Collapse file tree 2 files changed +87
-0
lines changed Original file line number Diff line number Diff line change 1+ name : BLUES GitHub Actions
2+
3+ on :
4+ # GitHub has started calling new repo's first branch "main" https://github.com/github/renaming
5+ # Existing codes likely still have "master" as the primary branch
6+ # Both are tracked here to keep legacy and new codes working
7+ push :
8+ branches :
9+ - " master"
10+ - " main"
11+ pull_request :
12+ branches :
13+ - " master"
14+ - " main"
15+ jobs :
16+ test :
17+ name : Test on ${{ matrix.os }}, Python ${{ matrix.python-version }}
18+ runs-on : ${{ matrix.os }}
19+ strategy :
20+ matrix :
21+ os : [ubuntu-latest]
22+ python-version : ["3.10"]
23+ # solver: ["libmamba"]
24+ steps :
25+ - uses : actions/checkout@v4
26+
27+ - name : Additional info about the build
28+ shell : bash
29+ run : |
30+ uname -a
31+ df -h
32+ ulimit -a
33+
34+ # More info on options: https://github.com/marketplace/actions/setup-micromamba
35+ - uses : conda-incubator/setup-miniconda@v3
36+ with :
37+ python-version : ${{ matrix.python-version }}
38+ environment-file : devtools/conda-envs/test_env.yaml
39+ condarc : |
40+ channels:
41+ - conda-forge
42+ - defaults
43+ - omnia
44+
45+
46+ - name : Install package
47+
48+ # conda setup requires this special shell
49+ shell : bash -l {0}
50+ run : |
51+ python setup.py sdist
52+ pip install dist/*
53+
54+
55+ - name : Run tests
56+
57+ # conda setup requires this special shell
58+ shell : bash -l {0}
59+
60+ run : |
61+ pytest -v --cov=blues --cov-report=xml --color=yes blues/tests/test_propane.py blues/tests/test_randomrotation.py blues/tests/test_sidechain.py blues/tests/test_randomrotation.py blues/tests/test_watertranslation.py
62+
63+ - name : CodeCov
64+ uses : codecov/codecov-action@v4
65+ with :
66+ file : ./coverage.xml
67+ flags : unittests
68+ name : codecov-${{ matrix.os }}-py${{ matrix.python-version }}
Original file line number Diff line number Diff line change 1+ name : blues
2+ channels :
3+ - omnia
4+ - openeye
5+ - conda-forge
6+ - defaults
7+ dependencies :
8+ - python==3.11
9+ - oeommtools
10+ - openeye-toolkits
11+ - cython
12+ - numpy
13+ - openmm
14+ - openmmtools
15+ - ipython
16+ - ipykernel
17+ - conda-forge::openff-toolkit
18+ - parmed
19+ prefix : /opt/miniconda3/envs/blues
You can’t perform that action at this time.
0 commit comments