update python test workflow to download cspice #426
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 | |
paths: | |
- '.github/workflows/python_tests.yml' | |
- 'include/**' | |
- 'src/**' | |
- 'grss/**' | |
- 'tests/python/**' | |
jobs: | |
prop-and-fit: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repo | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: 3.11 | |
- name: Install GRSS (including dependencies) | |
run: | | |
cd ./extern/ | |
python3 get_cspice.py | |
cd .. | |
python3 -m pip install --upgrade pip | |
pip3 install "pybind11[global]>=2.10.0" | |
pip3 install . | |
- name: Run tests | |
run: | | |
python3 -m pip install jupyter | |
cd tests/python | |
./run_tests.sh prop | |
./run_tests.sh fit |