Skip to content

Commit 83b1edd

Browse files
bump devops_tests to include checks for badge presence and Colab header cell (#1403)
Co-authored-by: Agnieszka Żaba <azaba@agh.edu.pl>
1 parent a2a7157 commit 83b1edd

File tree

73 files changed

+869
-4720
lines changed

Some content is hidden

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

73 files changed

+869
-4720
lines changed

.github/workflows/tests+artifacts+pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
run: git diff
3232

3333
nojit_and_codecov:
34-
needs: [precommit, pylint]
34+
needs: [precommit, pylint, devops]
3535
runs-on: ubuntu-latest
3636
env:
3737
NUMBA_DISABLE_JIT: 1
@@ -300,7 +300,7 @@ jobs:
300300
with:
301301
submodules: recursive
302302
fetch-depth: 0 # https://github.com/pypa/setuptools_scm/issues/480
303-
- run: pip install -r tests/devops_tests/requirements.txt "flexparser<0.4"
303+
- run: pip install -r tests/devops_tests/requirements.txt
304304
- env:
305305
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
306306
run: pytest --durations=10 -v -s -We -p no:unraisableexception -k "not test_run_notebooks" tests/devops_tests
@@ -363,7 +363,7 @@ jobs:
363363

364364
publish:
365365
runs-on: ubuntu-latest
366-
needs: [tests, examples, devops, package, pkg_install_check]
366+
needs: [tests, examples, package, pkg_install_check]
367367
permissions:
368368
id-token: write
369369
steps:

examples/PySDM_examples/Abade_and_Albuquerque_2024/fig_2.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "a3af9f8e-a138-47c8-af08-62451db09352",
66
"metadata": {},
77
"source": [
8-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abade_and_Albuquerque_2024/fig_2.ipynb)\n",
8+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abade_and_Albuquerque_2024/fig_2.ipynb)\n",
99
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Abade_and_Albuquerque_2024/fig_2.ipynb)\n",
1010
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abade_and_Albuquerque_2024/fig_2.ipynb)"
1111
]
@@ -22,6 +22,20 @@
2222
"https://doi.org/10.1002/qj.4775"
2323
]
2424
},
25+
{
26+
"metadata": {},
27+
"cell_type": "code",
28+
"outputs": [],
29+
"execution_count": null,
30+
"source": [
31+
"import sys\n",
32+
"if 'google.colab' in sys.modules:\n",
33+
" !pip --quiet install open-atmos-jupyter-utils\n",
34+
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
35+
" pip_install_on_colab('PySDM-examples')"
36+
],
37+
"id": "aa876f2db21bb522"
38+
},
2539
{
2640
"cell_type": "code",
2741
"execution_count": 1,

examples/PySDM_examples/Abdul_Razzak_Ghan_2000/fig_4_kinetic_limitations.ipynb

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"cell_type": "markdown",
55
"source": [
6-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/fig_4_kinetic_limitations.ipynb)\n",
6+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/fig_4_kinetic_limitations.ipynb)\n",
77
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/fig_4_kinetic_limitations.ipynb)\n",
88
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/fig_4_kinetic_limitations.ipynb)"
99
],
@@ -24,6 +24,20 @@
2424
"http://doi.wiley.com/10.1029/1999JD901161"
2525
]
2626
},
27+
{
28+
"metadata": {},
29+
"cell_type": "code",
30+
"outputs": [],
31+
"execution_count": null,
32+
"source": [
33+
"import sys\n",
34+
"if 'google.colab' in sys.modules:\n",
35+
" !pip --quiet install open-atmos-jupyter-utils\n",
36+
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
37+
" pip_install_on_colab('PySDM-examples')"
38+
],
39+
"id": "f52cbd092d056ba6"
40+
},
2741
{
2842
"cell_type": "code",
2943
"execution_count": 4,

examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"id": "6a24a08f",
66
"metadata": {},
77
"source": [
8-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb)\n",
8+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb)\n",
99
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb)\n",
1010
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Abdul_Razzak_Ghan_2000/figs1-5.ipynb)"
1111
]

examples/PySDM_examples/Alpert_and_Knopf_2016/fig_1.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_1.ipynb)\n",
7+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_1.ipynb)\n",
88
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_1.ipynb)\n",
99
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_1.ipynb)\n"
1010
]
@@ -35,7 +35,7 @@
3535
"if 'google.colab' in sys.modules:\n",
3636
" !pip --quiet install open-atmos-jupyter-utils\n",
3737
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
38-
" pip_install_on_colab('PySDM-examples>=1.9', 'PySDM>=1.9')"
38+
" pip_install_on_colab('PySDM-examples')"
3939
]
4040
},
4141
{

examples/PySDM_examples/Alpert_and_Knopf_2016/fig_2.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
}
1010
},
1111
"source": [
12-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_2.ipynb)\n",
12+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_2.ipynb)\n",
1313
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_2.ipynb)\n",
1414
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_2.ipynb)"
1515
]
@@ -40,7 +40,7 @@
4040
"if 'google.colab' in sys.modules:\n",
4141
" !pip --quiet install open-atmos-jupyter-utils\n",
4242
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
43-
" pip_install_on_colab('PySDM-examples>=1.9', 'PySDM>=1.9')"
43+
" pip_install_on_colab('PySDM-examples')"
4444
]
4545
},
4646
{

examples/PySDM_examples/Alpert_and_Knopf_2016/fig_3.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_3.ipynb)\n",
7+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_3.ipynb)\n",
88
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_3.ipynb)\n",
99
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_3.ipynb)"
1010
]
@@ -35,7 +35,7 @@
3535
"if 'google.colab' in sys.modules:\n",
3636
" !pip --quiet install open-atmos-jupyter-utils\n",
3737
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
38-
" pip_install_on_colab('PySDM-examples>=1.9', 'PySDM>=1.9')"
38+
" pip_install_on_colab('PySDM-examples')"
3939
]
4040
},
4141
{

examples/PySDM_examples/Alpert_and_Knopf_2016/fig_4.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_4.ipynb)\n",
7+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_4.ipynb)\n",
88
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_4.ipynb)\n",
99
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_4.ipynb)"
1010
]
@@ -35,7 +35,7 @@
3535
"if 'google.colab' in sys.modules:\n",
3636
" !pip --quiet install open-atmos-jupyter-utils\n",
3737
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
38-
" pip_install_on_colab('PySDM-examples>=1.14', 'PySDM>=1.14')"
38+
" pip_install_on_colab('PySDM-examples')"
3939
]
4040
},
4141
{

examples/PySDM_examples/Alpert_and_Knopf_2016/fig_5.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_5.ipynb)\n",
7+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_5.ipynb)\n",
88
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_5.ipynb)\n",
99
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Alpert_and_Knopf_2016/fig_5.ipynb)"
1010
]
@@ -35,7 +35,7 @@
3535
"if 'google.colab' in sys.modules:\n",
3636
" !pip --quiet install open-atmos-jupyter-utils\n",
3737
" from open_atmos_jupyter_utils import pip_install_on_colab\n",
38-
" pip_install_on_colab('PySDM-examples>=1.14', 'PySDM>=1.14')"
38+
" pip_install_on_colab('PySDM-examples')"
3939
]
4040
},
4141
{

examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"cell_type": "markdown",
55
"metadata": {},
66
"source": [
7-
"[![View notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb)\n",
7+
"[![preview notebook](https://img.shields.io/static/v1?label=render%20on&logo=github&color=87ce3e&message=GitHub)](https://github.com/open-atmos/PySDM/blob/main/examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb) \n",
88
"[![Binder](https://mybinder.org/badge_logo.svg)](https://mybinder.org/v2/gh/open-atmos/PySDM.git/main?urlpath=lab/tree/examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb) \n",
99
"[![Open In Colab](https://colab.research.google.com/assets/colab-badge.svg)](https://colab.research.google.com/github/open-atmos/PySDM/blob/main/examples/PySDM_examples/Arabas_and_Shima_2017/fig_5.ipynb)"
1010
]

0 commit comments

Comments
 (0)