Skip to content

Commit d6d97a2

Browse files
authored
Merge pull request #1031 from openpathsampling/release-1.5.0
OpenPathSampling 1.5
2 parents 8cb8f3f + 82b5284 commit d6d97a2

107 files changed

Lines changed: 5375 additions & 578 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.coveragerc‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@ omit =
99
openpathsampling/version.py
1010
exclude_lines =
1111
pragma: no cover
12+
pragma: no-cover
13+
-no-cov-
1214
def __repr__
1315
raise NotImplementedError
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# Workflow to check for a recent OpenMM release candidate.
2+
#
3+
# If a recent RC is found, trigger a second workflow to test against it.
4+
# See also: test-openmm-rc.yml
5+
name: "Check for OpenMM RC"
6+
on:
7+
schedule:
8+
- cron: "0 9 * * */2"
9+
10+
jobs:
11+
check-rc:
12+
runs-on: ubuntu-latest
13+
name: "Check for OpenMM RC"
14+
steps:
15+
- uses: actions/checkout@v2
16+
- uses: dwhswenson/conda-rc-check@main
17+
id: checkrc
18+
with:
19+
channel: conda-forge
20+
package: openmm
21+
ndays: 3
22+
labels: openmm_rc
23+
- uses: benc-uk/workflow-dispatch@v1
24+
with:
25+
workflow: Test OpenMM Release Candidate
26+
token: ${{ secrets.DISPATCH_TOKEN }}
27+
if: ${{ steps.checkrc.outputs.hasrc == 'True' }}

‎.github/workflows/deploy_docs.yml‎

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# NOTE: This workflow should obviate the after_success script
2+
name: "docs"
3+
on:
4+
push:
5+
branches:
6+
- master
7+
- docs_deploy
8+
# TODO: add support for tags/stable
9+
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
14+
jobs:
15+
docs:
16+
runs-on: ubuntu-latest
17+
name: "docs"
18+
steps:
19+
- uses: actions/checkout@v2
20+
- uses: actions/setup-python@v2
21+
- uses: conda-incubator/setup-miniconda@v2
22+
with:
23+
auto-update-conda: true
24+
python-version: 3.9
25+
- name: "Install requirements"
26+
run: source devtools/conda_install_reqs.sh
27+
- name: "Install OPS"
28+
run: |
29+
python -m pip install --no-deps -e .
30+
python -c "import openpathsampling"
31+
- name: "Install doc tools"
32+
run: |
33+
python -m pip install numpydoc s3cmd
34+
conda install -y -c conda-forge --file docs/requirements.txt
35+
- name: "Versions"
36+
run: conda list
37+
- name: "Build docs"
38+
run: cd docs && python premake.py && make html && cd -
39+
- name: "Check docs"
40+
run: |
41+
ls -lt docs/_build
42+
ls -ls docs/_build/html
43+
pwd
44+
- name: "Deploy docs"
45+
# TODO: perhaps run docs build on all, but only push on merge
46+
run: python devtools/ci/push-docs-to-s3.py #--clobber
47+
env:
48+
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
49+
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
50+
51+
Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Workflow to test against release candidate of OpenMM.
2+
# See also: check-openmm-rc.yml
3+
name: "Test OpenMM Release Candidate"
4+
on:
5+
workflow_dispatch:
6+
# use this for debugging
7+
#pull_request:
8+
#branch: master
9+
10+
defaults:
11+
run:
12+
shell: bash -l {0}
13+
14+
jobs:
15+
tests:
16+
runs-on: ubuntu-latest
17+
name: "Tests"
18+
steps:
19+
- uses: actions/checkout@v2
20+
with:
21+
fetch-depth: 2
22+
- uses: actions/setup-python@v2
23+
- uses: conda-incubator/setup-miniconda@v2
24+
with:
25+
auto-update-conda: true
26+
- name: "Install requirements"
27+
run: |
28+
CONDA_PY=$(python -c "import sys; print('.'.join(str(s) for s in sys.version_info[:2]))")
29+
echo "Python version: ${CONDA_PY}"
30+
source devtools/conda_install_reqs.sh
31+
- name: "Install OpenMM RC"
32+
run: |
33+
conda install -c conda-forge/label/openmm_rc -c conda-forge openmm
34+
- name: "Install"
35+
run: |
36+
python -m pip install --no-deps -e .
37+
python -c "import openpathsampling"
38+
- name: "Versions"
39+
run: conda list
40+
- name: "Unit Tests"
41+
env:
42+
PY_COLORS: "1"
43+
run: py.test -vv -s --cov --cov-report xml
44+
- name: "Tests: Experimental"
45+
if: matrix.MINIMAL == '' && matrix.CONDA_PY != '2.7'
46+
run: py.test openpathsampling/experimental/ -vv -s
47+
- name: "Notebook tests"
48+
run: |
49+
pushd examples/ && ./ipynbtests.sh || exit 1 && popd

‎.github/workflows/tests.yml‎

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,19 +22,28 @@ jobs:
2222
runs-on: ubuntu-latest
2323
name: "Tests"
2424
strategy:
25+
# NOTE: When changing the test matrix:
26+
# * Update the after_n_builds in codecov.yml to match the number of
27+
# builds in the matrix
28+
# * You may need to create another example run for the notebook tests
29+
# (see examples/ipynbtests.sh; examples/prep_example_data.py). This
30+
# is because Python internals (usually bytecode, which is saved in
31+
# CVs) can differ between minor Python versions.
2532
matrix:
2633
CONDA_PY:
27-
#- 3.9
28-
#- 3.8
34+
- 3.9
35+
- 3.8
2936
- 3.7
3037
- 2.7
3138
MINIMAL: [""]
3239
include:
3340
- CONDA_PY: 3.7
34-
MINIMAL: true
41+
MINIMAL: "minimal"
3542

3643
steps:
3744
- uses: actions/checkout@v2
45+
with:
46+
fetch-depth: 2
3847
- uses: actions/setup-python@v2
3948
- uses: conda-incubator/setup-miniconda@v2
4049
with:

‎README.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[![Tests](https://github.com/openpathsampling/openpathsampling/workflows/Tests/badge.svg?branch=master)](https://github.com/openpathsampling/openpathsampling/actions?query=workflow%3ATests)
2-
[![Coverage Status](https://coveralls.io/repos/github/openpathsampling/openpathsampling/badge.svg?branch=master)](https://coveralls.io/github/openpathsampling/openpathsampling?branch=master)
2+
[![codecov](https://codecov.io/gh/openpathsampling/openpathsampling/branch/master/graph/badge.svg?token=9W18VHasdb)](https://codecov.io/gh/openpathsampling/openpathsampling)
33

44
# OpenPathSampling
55

‎codecov.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
target: auto
6+
threshold: 0.04%
7+
8+
codecov:
9+
notify:
10+
wait_for_ci: true
11+
after_n_builds: 5

‎devtools/ci/miniconda_install.sh‎

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ bash $MINICONDA -b
2525

2626
export PATH=$HOME/miniconda${pyV}/bin:$PATH
2727

28-
# this puts the channel priority to (1) conda-forge; (2) omnia (3) defaults
29-
conda config --add channels http://conda.anaconda.org/omnia
3028
conda config --add channels http://conda.anaconda.org/conda-forge
3129

3230
# next two lines are workaround for conda/conda#9337

‎devtools/experimental_reqs.txt‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1-
sqlalchemy
1+
sqlalchemy!=1.4.0
2+
dill

‎devtools/tested_integrations.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
jupyter
2-
openmm
2+
openmm!=7.5.1
33
openmmtools
44
py-plumed
55
pyemma

0 commit comments

Comments
 (0)