Skip to content

Update miniforge action #23

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

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
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
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,21 +21,20 @@ jobs:
strategy:
matrix:
CONDA_PY:
- "3.8"
- "3.9"
- "3.12"
- "3.11"
- "3.10"
#- "3.11"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.CONDA_PY }}
environment-file: binder/environment.yml
activate-environment: ops-tutorial
miniforge-variant: Mambaforge
miniforge-version: latest
- name: "Install testing tools"
run: python -m pip install pytest nbval
- name: "Conda info"
Expand All @@ -60,21 +59,20 @@ jobs:
strategy:
matrix:
CONDA_PY:
- "3.8"
- "3.9"
- "3.12"
- "3.11"
- "3.10"
#- "3.11"

steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: conda-incubator/setup-miniconda@v2
- uses: conda-incubator/setup-miniconda@v3
with:
auto-update-conda: true
python-version: ${{ matrix.CONDA_PY }}
environment-file: binder/environment.yml
activate-environment: ops-tutorial
miniforge-variant: Mambaforge
miniforge-version: latest
- name: "Install testing tools"
run: python -m pip install pytest nbval
- name: "Conda info"
Expand All @@ -85,7 +83,7 @@ jobs:
run: source devtools/patch-all
- name: "Run tests"
run: |
pytest --nbval-lax 5_custom_shooting_setup.ipynb
pytest -v --durations=0 --nbval-lax 5_custom_shooting_setup.ipynb
source devtools/run5.sh
pytest --nbval-lax \
6_custom_shooting_analysis.ipynb \
Expand Down
4 changes: 3 additions & 1 deletion 4_mstis_sampling_tutorial.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,8 @@
" filename = \"./inputs/mstis_bootstrap_py3.nc\"\n",
"elif (3, 8) <= sys.version_info < (3, 11):\n",
" filename = \"./inputs/mstis_bootstrap_py38.nc\"\n",
"elif (3, 11) <= sys.version_info:\n",
" filename = \"./inputs/mstis_bootstrap_py311.nc\"\n",
"else:\n",
" raise RuntimeError(\n",
" \"Uh oh! Looks like we don't have an input file for your Python version: \"\n",
Expand Down Expand Up @@ -613,7 +615,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.9.13"
"version": "3.11.8"
},
"toc": {
"base_numbering": 1,
Expand Down
10 changes: 7 additions & 3 deletions 5_custom_shooting_setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,12 @@
"import sys\n",
"if sys.version_info < (3, 8):\n",
" f_version = \"\"\n",
"elif sys.version_info < (3, 11):\n",
" f_version = \"_38\"\n",
"elif sys.version_info < (3, 12):\n",
" f_version = \"_311\"\n",
"else:\n",
" f_version = \"_38\""
" f_version = \"_312\""
]
},
{
Expand Down Expand Up @@ -425,7 +429,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -439,7 +443,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.12.8"
},
"toc": {
"base_numbering": 1,
Expand Down
8 changes: 5 additions & 3 deletions 7_parallel_tis_setup.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,10 @@
"import sys\n",
"if sys.version_info < (3, 8):\n",
" f_version = \"\"\n",
"elif sys.version_info < (3, 11):\n",
" f_version = \"_38\"\n",
"else:\n",
" f_version = \"_38\""
" f_version = \"_311\""
]
},
{
Expand Down Expand Up @@ -333,7 +335,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3",
"display_name": "Python 3 (ipykernel)",
"language": "python",
"name": "python3"
},
Expand All @@ -347,7 +349,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.10"
"version": "3.11.8"
}
},
"nbformat": 4,
Expand Down
3 changes: 1 addition & 2 deletions binder/environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ dependencies:
- openpathsampling-cli
- openmmtools
- jupyterlab
- ipywidgets <8
- numpy <1.24
#- ipywidgets <8
prefix: /Users/dwhs/miniconda3/envs/ops-tutorial
Binary file added inputs/2_state_toy_311.nc
Binary file not shown.
Binary file added inputs/2_state_toy_312.nc
Binary file not shown.
Binary file added inputs/mstis_bootstrap_py311.nc
Binary file not shown.
Loading