Skip to content

Commit 6d45207

Browse files
authored
Merge pull request #23 from dwhswenson/update-miniforge
Update miniforge action
2 parents 99488a3 + b690dab commit 6d45207

File tree

8 files changed

+29
-20
lines changed

8 files changed

+29
-20
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,20 @@ jobs:
2121
strategy:
2222
matrix:
2323
CONDA_PY:
24-
- "3.8"
25-
- "3.9"
24+
- "3.12"
25+
- "3.11"
2626
- "3.10"
27-
#- "3.11"
2827

2928
steps:
3029
- uses: actions/checkout@v2
3130
- uses: actions/setup-python@v2
32-
- uses: conda-incubator/setup-miniconda@v2
31+
- uses: conda-incubator/setup-miniconda@v3
3332
with:
3433
auto-update-conda: true
3534
python-version: ${{ matrix.CONDA_PY }}
3635
environment-file: binder/environment.yml
3736
activate-environment: ops-tutorial
38-
miniforge-variant: Mambaforge
37+
miniforge-version: latest
3938
- name: "Install testing tools"
4039
run: python -m pip install pytest nbval
4140
- name: "Conda info"
@@ -60,21 +59,20 @@ jobs:
6059
strategy:
6160
matrix:
6261
CONDA_PY:
63-
- "3.8"
64-
- "3.9"
62+
- "3.12"
63+
- "3.11"
6564
- "3.10"
66-
#- "3.11"
6765

6866
steps:
6967
- uses: actions/checkout@v2
7068
- uses: actions/setup-python@v2
71-
- uses: conda-incubator/setup-miniconda@v2
69+
- uses: conda-incubator/setup-miniconda@v3
7270
with:
7371
auto-update-conda: true
7472
python-version: ${{ matrix.CONDA_PY }}
7573
environment-file: binder/environment.yml
7674
activate-environment: ops-tutorial
77-
miniforge-variant: Mambaforge
75+
miniforge-version: latest
7876
- name: "Install testing tools"
7977
run: python -m pip install pytest nbval
8078
- name: "Conda info"
@@ -85,7 +83,7 @@ jobs:
8583
run: source devtools/patch-all
8684
- name: "Run tests"
8785
run: |
88-
pytest --nbval-lax 5_custom_shooting_setup.ipynb
86+
pytest -v --durations=0 --nbval-lax 5_custom_shooting_setup.ipynb
8987
source devtools/run5.sh
9088
pytest --nbval-lax \
9189
6_custom_shooting_analysis.ipynb \

4_mstis_sampling_tutorial.ipynb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,8 @@
224224
" filename = \"./inputs/mstis_bootstrap_py3.nc\"\n",
225225
"elif (3, 8) <= sys.version_info < (3, 11):\n",
226226
" filename = \"./inputs/mstis_bootstrap_py38.nc\"\n",
227+
"elif (3, 11) <= sys.version_info:\n",
228+
" filename = \"./inputs/mstis_bootstrap_py311.nc\"\n",
227229
"else:\n",
228230
" raise RuntimeError(\n",
229231
" \"Uh oh! Looks like we don't have an input file for your Python version: \"\n",
@@ -613,7 +615,7 @@
613615
"name": "python",
614616
"nbconvert_exporter": "python",
615617
"pygments_lexer": "ipython3",
616-
"version": "3.9.13"
618+
"version": "3.11.8"
617619
},
618620
"toc": {
619621
"base_numbering": 1,

5_custom_shooting_setup.ipynb

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,12 @@
5252
"import sys\n",
5353
"if sys.version_info < (3, 8):\n",
5454
" f_version = \"\"\n",
55+
"elif sys.version_info < (3, 11):\n",
56+
" f_version = \"_38\"\n",
57+
"elif sys.version_info < (3, 12):\n",
58+
" f_version = \"_311\"\n",
5559
"else:\n",
56-
" f_version = \"_38\""
60+
" f_version = \"_312\""
5761
]
5862
},
5963
{
@@ -425,7 +429,7 @@
425429
],
426430
"metadata": {
427431
"kernelspec": {
428-
"display_name": "Python 3",
432+
"display_name": "Python 3 (ipykernel)",
429433
"language": "python",
430434
"name": "python3"
431435
},
@@ -439,7 +443,7 @@
439443
"name": "python",
440444
"nbconvert_exporter": "python",
441445
"pygments_lexer": "ipython3",
442-
"version": "3.7.10"
446+
"version": "3.12.8"
443447
},
444448
"toc": {
445449
"base_numbering": 1,

7_parallel_tis_setup.ipynb

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,14 @@
3737
"import sys\n",
3838
"if sys.version_info < (3, 8):\n",
3939
" f_version = \"\"\n",
40+
"elif sys.version_info < (3, 11):\n",
41+
" f_version = \"_38\"\n",
42+
"elif sys.version_info < (3, 12):\n",
43+
" f_version = \"_311\"\n",
44+
"elif sys.version_info < (3, 13):\n",
45+
" f_version = \"_312\"\n",
4046
"else:\n",
41-
" f_version = \"_38\""
47+
" raise RuntimeError(\"Unsupported Python version\")"
4248
]
4349
},
4450
{
@@ -333,7 +339,7 @@
333339
],
334340
"metadata": {
335341
"kernelspec": {
336-
"display_name": "Python 3",
342+
"display_name": "Python 3 (ipykernel)",
337343
"language": "python",
338344
"name": "python3"
339345
},
@@ -347,7 +353,7 @@
347353
"name": "python",
348354
"nbconvert_exporter": "python",
349355
"pygments_lexer": "ipython3",
350-
"version": "3.7.10"
356+
"version": "3.12.8"
351357
}
352358
},
353359
"nbformat": 4,

binder/environment.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,5 @@ dependencies:
1212
- openpathsampling-cli
1313
- openmmtools
1414
- jupyterlab
15-
- ipywidgets <8
16-
- numpy <1.24
15+
- mdtraj != 1.11 # formal charge error round-tripping Topology via pandas
1716
prefix: /Users/dwhs/miniconda3/envs/ops-tutorial

inputs/2_state_toy_311.nc

67.6 MB
Binary file not shown.

inputs/2_state_toy_312.nc

67.6 MB
Binary file not shown.

inputs/mstis_bootstrap_py311.nc

50.4 MB
Binary file not shown.

0 commit comments

Comments
 (0)