File tree 5 files changed +15
-6
lines changed
5 files changed +15
-6
lines changed Original file line number Diff line number Diff line change 14
14
# - Download the Python package from the previous job
15
15
# - Install the downloaded Python package
16
16
# - Test the code base
17
- # - Check if Jupiter Notebooks run without errors
17
+ # - Check if Jupyter Notebooks run without errors
18
18
19
19
name : Test code, notebooks and package
20
20
@@ -251,7 +251,7 @@ jobs:
251
251
run : >
252
252
pytest tests/ --color=yes -n auto
253
253
254
- - name : Check if Jupiter Notebooks run without errors
254
+ - name : Check if Jupyter Notebooks run without errors
255
255
shell : bash
256
256
run : >
257
257
pytest --nbmake examples/ --ignore-glob='examples/*emcee*'
Original file line number Diff line number Diff line change 1
1
<p align =' left ' >
2
2
<picture >
3
3
<!-- light mode logo -->
4
- <source media='(prefers-color-scheme: light)' srcset='https://raw.githubusercontent.com/EasyScience/EasyDiffraction/ master/resources/logo/EasyDiffractionLib-logo_lightmode .svg'>
4
+ <source media='(prefers-color-scheme: light)' srcset='https://raw.githubusercontent.com/EasyScience/BrandingResources/refs/heads/ master/EasyDiffraction/logos/ed-logo_light .svg'>
5
5
<!-- dark mode logo -->
6
- <source media='(prefers-color-scheme: dark)' srcset='https://raw.githubusercontent.com/EasyScience/EasyDiffraction/ master/resources/logo/EasyDiffractionLib-logo_darkmode .svg'>
6
+ <source media='(prefers-color-scheme: dark)' srcset='https://raw.githubusercontent.com/EasyScience/BrandingResources/refs/heads/ master/EasyDiffraction/logos/ed-logo_dark .svg'>
7
7
<!-- default logo == light mode logo -->
8
- <img src='https://raw.githubusercontent.com/EasyScience/EasyDiffraction/ master/resources/logo/EasyDiffractionLib-logo_lightmode .svg' alt='EasyCrystallography '>
8
+ <img src='https://raw.githubusercontent.com/EasyScience/BrandingResources/refs/heads/ master/EasyDiffraction/logos/ed-logo_light .svg' alt='EasyDiffraction '>
9
9
</picture >
10
10
</p >
11
11
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ echo "\033[0;33m:::::: Check and fix code formatting\033[0m"
5
5
ruff format .
6
6
7
7
echo " \033[0;33m:::::: Check and fix notebook formatting\033[0m"
8
- nbqa ruff examples/
8
+ nbqa ruff examples/ --fix
9
9
10
10
echo " \033[0;33m:::::: Check and fix non-code formatting\033[0m"
11
11
npx prettier . --write --config=prettierrc.toml
Original file line number Diff line number Diff line change
1
+ echo " \033[0;33m:::::: Add src to pythonpath\033[0m"
2
+ export PYTHONPATH=" ${PWD} /src:${PYTHONPATH} "
3
+ echo " PYTHONPATH: ${PYTHONPATH} "
4
+
5
+ echo " \033[0;33m:::::: Run Jupyter notebooks\033[0m"
6
+ pytest --nbmake examples/ --ignore-glob=' examples/*emcee*' --nbmake-timeout=300 --color=yes -n=auto
Original file line number Diff line number Diff line change @@ -5,5 +5,8 @@ echo "PYTHONPATH: ${PYTHONPATH}"
5
5
echo " \033[0;33m:::::: Run unit tests\033[0m"
6
6
pytest tests/unit_tests/ --color=yes --disable-warnings
7
7
8
+ echo " \033[0;33m:::::: Run functional tests\033[0m"
9
+ pytest tests/functional_tests/ --color=yes --disable-warnings
10
+
8
11
echo " \033[0;33m:::::: Run integration tests\033[0m"
9
12
pytest tests/integration_tests/ --color=yes --disable-warnings
You can’t perform that action at this time.
0 commit comments