Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

run nightly nightly #765

Closed
wants to merge 27 commits into from
Closed
Show file tree
Hide file tree
Changes from 26 commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
b69ec7c
fix coverage report
mikemhenry Feb 1, 2021
7a463c1
removed extra openmm testing cases
mikemhenry Feb 2, 2021
45e30b8
removed extra channels and updated openforcefield -> openff-toolkit
mikemhenry Feb 2, 2021
2f669fc
env will still be broken until openmmforcefields is on conda-forge, s…
mikemhenry Feb 2, 2021
d8d2d8f
bulk rename 's/from openforcefield.topology import Molecule/from open…
mikemhenry Feb 2, 2021
1314093
update env used by CI
mikemhenry Feb 2, 2021
4ac9272
trying to keep test_env.yml and environment.yml in sync-ish
mikemhenry Feb 2, 2021
ea3684c
add extra dask package
mikemhenry Feb 3, 2021
8736f4a
switch to using openmmforcefields from conda-forge
mikemhenry Feb 10, 2021
1cfb427
add future rc testing case + only report coverage for perses
mikemhenry Feb 11, 2021
961ec24
fix import error with older versions of openmm
mikemhenry Feb 11, 2021
3051e8e
Update .github/workflows/CI.yaml
mikemhenry Feb 12, 2021
185536f
switch to pytest
mikemhenry Feb 12, 2021
31cd939
not sure if this will work but it might let the nightlys run w/o mark…
mikemhenry Feb 12, 2021
b6589ec
nosetests would skip baised on atter, so we need to do that too
mikemhenry Feb 12, 2021
5482443
pytest-attrib is not on conda-forge
mikemhenry Feb 12, 2021
01ffc0d
fix syntax
mikemhenry Feb 12, 2021
dc2734c
remove schedule and don't test on nightly
mikemhenry Feb 12, 2021
d0a5bb6
create an issue if the nightly build fails
mikemhenry Feb 12, 2021
3a97b09
fix the name clash
mikemhenry Feb 12, 2021
a85d16a
Update Nightly.yml
mikemhenry Feb 12, 2021
764482c
another syntax fix on the yml
mikemhenry Feb 12, 2021
84e3bf5
checking to see if these spaces make github unhappy
mikemhenry Feb 12, 2021
3b1d3d2
Merge remote-tracking branch 'upstream/master' into feat/run_nightly_…
mikemhenry Feb 12, 2021
94345e5
Merge remote-tracking branch 'upstream/master' into feat/run_nightly_…
mikemhenry Feb 12, 2021
6132250
Update .github/workflows/Nightly.yml
mikemhenry Feb 12, 2021
5537690
Update .github/workflows/Nightly.yml
mikemhenry Feb 12, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .github/nightly-fail.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
---
title: Night Build Failed {{ date | date('dddd, MMMM Do') }}
---
Workflow trigger by: {{ payload.sender.login }}.
5 changes: 0 additions & 5 deletions .github/workflows/CI.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
pull_request:
branches:
- "master"
schedule:
# nightly tests
- cron: "0 0 * * *"
push:
branches:
- master
Expand All @@ -21,8 +18,6 @@ jobs:
cfg:
- { os: ubuntu-latest, python-version: 3.7, openmm: latest }
- { os: ubuntu-latest, python-version: 3.8, openmm: latest }
- { os: ubuntu-latest, python-version: 3.7, openmm: nightly }
- { os: ubuntu-latest, python-version: 3.8, openmm: nightly }
- { os: ubuntu-latest, python-version: 3.7, openmm: conda-forge }
- { os: ubuntu-latest, python-version: 3.8, openmm: conda-forge }

Expand Down
100 changes: 100 additions & 0 deletions .github/workflows/Nightly.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
name: Nightly-Nightly-Check

on:
schedule:
# nightly tests
- cron: "0 0 * * *"
# Be able to run manually
workflow_dispatch:

jobs:
test:
name: Test on ${{ matrix.cfg.os }}, Python ${{ matrix.cfg.python-version }}, OpenMM ${{ matrix.cfg.openmm }}
mikemhenry marked this conversation as resolved.
Show resolved Hide resolved
runs-on: ${{ matrix.cfg.os }}
strategy:
fail-fast: false
matrix:
cfg:
- { os: ubuntu-latest, python-version: 3.7, openmm: latest }
- { os: ubuntu-latest, python-version: 3.8, openmm: latest }
- { os: ubuntu-latest, python-version: 3.7, openmm: nightly }
- { os: ubuntu-latest, python-version: 3.8, openmm: nightly }
- { os: ubuntu-latest, python-version: 3.7, openmm: conda-forge }
- { os: ubuntu-latest, python-version: 3.8, openmm: conda-forge }

env:
OPENMM: ${{ matrix.cfg.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

# More info on options: https://github.com/conda-incubator/setup-miniconda
- uses: conda-incubator/setup-miniconda@v2
with:
python-version: ${{ matrix.python-version }}
environment-file: devtools/conda-envs/test_env.yaml
channels: conda-forge,defaults,omnia-dev,openeye
activate-environment: test
auto-update-conda: true
auto-activate-base: false
show-channel-urls: true

- name: Refine test environment
shell: bash -l {0}
run: |
case ${{ matrix.cfg.openmm }} in
latest)
echo "Using latest release OpenMM."
conda install --quiet -c conda-forge openmm;;
#rc) # We can uncomment this case when we have this label on conda-forge
#echo "Using OpenMM rc"
#conda install --quiet -c conda-forge/label/openmm_rc openmm;;
nightly)
echo "Using OpenMM nightly dev build."
conda install --quiet -c omnia-dev openmm;;
esac

- name: Install package
shell: bash -l {0}
run: |
python -m pip install --no-deps -v .

- name: Environment Information
shell: bash -l {0}
run: |
conda info -a
conda 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}
run: |
export OE_LICENSE="$HOME/oe_license.txt"
export TRAVIS=true
pushd .
nosetests perses --with-coverage --cover-package=perses --verbosity=3 --with-timer -a '!advanced' --cover-xml --cover-xml-file=./coverage.xml
popd

- name: Make an issue
- uses: JasonEtco/create-an-issue@v2
if: ${{ failure() }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
assignees: mikemhenry
filename: .github/nightly-fail.md