Add stop gradient to tangent vector field calcuation #194
Workflow file for this run
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: CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
schedule: | |
- cron: "0 13 * * 1" # Every Monday at 9AM EST | |
jobs: | |
lint-and-typecheck: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: Setup environment | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[dev]" | |
- name: Lint Python files | |
run: | | |
find . -name "*.py" | xargs black --check | |
find . -name "*.py" | xargs isort --profile black --check-only | |
- name: Typecheck with mypy | |
run: | | |
mypy src | |
mypy examples | |
- name: Validate docstrings | |
run: | | |
darglint src --strictness=short --ignore-raise=ValueError | |
darglint examples --strictness=short --ignore-raise=ValueError | |
test-fmmax: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: Setup environment | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[tests,dev]" | |
- name: Test fmmax | |
run: pytest tests/fmmax | |
test-examples: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.10" | |
cache: "pip" | |
cache-dependency-path: pyproject.toml | |
- name: Setup environment | |
run: | | |
python -m pip install --upgrade pip | |
pip install ".[tests,dev]" | |
- name: Test examples | |
run: python -m pytest tests/examples | |