joss p7 #138
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
name: Python tests | |
on: | |
push: | |
branches: | |
- main | |
- dev | |
jobs: | |
prop-and-fit: | |
runs-on: macos-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v3 | |
with: | |
submodules: true | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.8 | |
- name: Install GRSS (including dependencies) | |
run: | | |
python3 -m pip install --upgrade pip | |
source initialize.sh | |
pip3 install . | |
- name: Run tests | |
run: | | |
python3 -m pip install jupyter ipykernel | |
python3 -m ipykernel install --user | |
cd tests/python | |
jupyter nbconvert --to script fit/*.ipynb | |
jupyter nbconvert --to script prop/*.ipynb | |
python fit/*.py | |
python prop/*.py |