Merge pull request #46 from aidancrilly/Hale_TT_reac #82
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This CI will check the package is installable and run some tests | |
name: CI | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: install package | |
run: | | |
pip install --upgrade pip | |
pip install . | |
python -c "import NeSST" | |
- name: install package with testing dependencies | |
run: | | |
pip install .[test] | |
pytest | |
- name: run examples | |
run: | | |
cd example | |
jupyter nbconvert --to python 'NeSST Guide.ipynb' | |
ipython 'NeSST Guide.py' |