update octupole equations #122
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: Run Tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_call: | |
jobs: | |
run_linter: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
pip install pre-commit | |
pre-commit install | |
- name: Run pre-commit | |
run: | # taken from https://pre-commit.com/#pre-commit-run | |
git ls-files -- '*.py' | xargs pre-commit run --files | |
# upload when open sourced | |
# - name: Upload coverage reports to Codecov | |
# uses: codecov/codecov-action@v3 | |
run_unit_tests: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
pip install -e ichor_core[dev] | |
pip install -e ichor_hpc | |
pip install -e ichor_cli | |
- name: Run pytest | |
run: | | |
pytest ichor_core/tests | |
run_examples: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.8" | |
- name: Install dependencies | |
run: | | |
pip install -e ichor_core[dev] | |
pip install -e ichor_hpc | |
pip install -e ichor_cli | |
- name: Run example notebooks | |
run: | | |
git ls-files -- '*.ipynb' | xargs pytest --nbval-lax --nbval-current-env |