-
Notifications
You must be signed in to change notification settings - Fork 5
68 lines (57 loc) · 1.68 KB
/
CI.yml
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
name: full_tests
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# nightly tests, 2 am
- cron: "0 2 * * *"
concurrency:
# Probably overly cautious group naming.
# Commits to develop/master will cancel each other, but PRs will only cancel
# commits within the same PR
group: "${{ github.ref }}-${{ github.head_ref }}"
cancel-in-progress: true
defaults:
run:
shell: bash -leo pipefail {0}
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
# Note: we temporarily pin to macos-12 to avoid compatibility issues
# between AT22+ and macos-13+ runners
os: ["ubuntu-latest", "macos-latest"]
python-version: ["3.10"]
steps:
- uses: actions/[email protected]
- name: Get current date
id: date
run: echo "date=$(date +%Y-%m-%d)" >> "${GITHUB_OUTPUT}"
- uses: mamba-org/setup-micromamba@v1
with:
environment-file: .binder/environment.yml
cache-environment: true
cache-downloads: true
cache-environment-key: environment-${{ steps.date.outputs.date }}
cache-downloads-key: downloads-${{ steps.date.outputs.date }}
create-args: >-
python=${{ matrix.python-version }}
init-shell: bash
- name: Additional info about the build
run: |
uname -a
df -h
ulimit -a
- name: Environment Information
run: |
micromamba info
micromamba list
- name: Run example notebooks
run: |
python -m pytest -v setup/ showcase/ cookbook/ openmm_rbfe/ networks/ --nbval-lax --nbval-cell-timeout=3000 -n auto --dist loadscope