Skip to content

Commit ffd57c9

Browse files
[MRG] CI: add minimal hnn-core install test (#1214)
* CI: add minimal hnn-core install test * CI: add minimal progressive install to windows * doc: add contributing authorship * CI: del MODs b/w install types --------- Co-authored-by: Austin E. Soplata <me@asoplata.com>
1 parent ad7c070 commit ffd57c9

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

.github/workflows/unix_unit_tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,19 @@ jobs:
3737
fi
3838
conda install --yes --quiet -c conda-forge mpi4py "openmpi >5"
3939
40-
- name: Install HNN-core
40+
- name: Install HNN-Core with minimal dependencies and test
41+
shell: bash -el {0}
42+
run: |
43+
pip install --verbose .
44+
python -c "from hnn_core import jones_2009_model, simulate_dipole; simulate_dipole(jones_2009_model(), tstop=20); print('--> SUCCESS: The test worked!')"
45+
46+
- name: Clean minimal dependencies install
47+
shell: bash -el {0}
48+
run: |
49+
pip uninstall --yes hnn_core
50+
rm -rf build
51+
52+
- name: Install HNN-Core with full dependencies
4153
shell: bash -el {0}
4254
run: |
4355
pip install --verbose '.[opt, parallel, test, gui]'

.github/workflows/windows_unit_tests.yml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,10 +41,22 @@ jobs:
4141
env:
4242
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4343

44-
- name: Install dependencies and HNN
44+
- name: Install HNN-Core with minimal dependencies and test
4545
shell: cmd
4646
run: |
4747
python -m pip install --upgrade pip
48+
pip install --verbose .
49+
python -c "from hnn_core import jones_2009_model, simulate_dipole; simulate_dipole(jones_2009_model(), tstop=20); print('--> SUCCESS: The test worked!')"
50+
51+
- name: Clean minimal dependencies install
52+
shell: cmd
53+
run: |
54+
pip uninstall --yes hnn_core
55+
rmdir /s /q build
56+
57+
- name: Install HNN-Core with full dependencies
58+
shell: cmd
59+
run: |
4860
pip install --verbose .[opt,parallel,test,gui]
4961
5062
- name: Check ruff formatting

doc/whats_new.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,15 @@ merged into `master`! Use `git log` instead and cross-reference instead. -->
2828

2929
## 0.5.1.dev0 In-progress Development Changes
3030

31+
### People who contributed to this release:
32+
33+
- [Tushar Jamdade][]
34+
35+
### Changelog
36+
37+
- Add progressive minimal install and test to Github Actions,
38+
by [Tushar Jamdade][] in {gh}`1214`.
39+
3140
## 0.5.0 Release Notes
3241

3342
### New Features
@@ -1245,3 +1254,4 @@ v0.4 represents a major milestone in development of `hnn_core` and the HNN ecosy
12451254
[Maira Usman]: https://github.com/Myrausman
12461255
[Chetan Kandpal]: https://github.com/Chetank99
12471256
[NEURON]: https://nrn.readthedocs.io
1257+
[Tushar Jamdade]: https://github.com/Tusharjamdade

0 commit comments

Comments
 (0)