Skip to content

Remove jax types from pure callbacks #479

Remove jax types from pure callbacks

Remove jax types from pure callbacks #479

Workflow file for this run

name: CI
on:
pull_request:
push:
branches:
- main
schedule:
- cron: "0 13 * * 1" # Every Monday at 9AM EST
jobs:
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip"
cache-dependency-path: pyproject.toml
- name: Test pre-commit hooks
run: |
python -m pip install --upgrade pip
pip install pre-commit
pre-commit run -a
validate-types-and-docstrings:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up 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: mypy type validation
run: mypy src
- name: darglint docstring validation
run: darglint src --strictness=short --ignore-raise=ValueError
# tests-misc:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: |
# pytest tests/utils
# pytest tests/loss
# tests-bayer:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/bayer
# tests-ceviche:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/ceviche
# tests-diffract:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/diffract
# tests-extractor:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/extractor
tests-library:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up 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: Run Python tests
run: pytest tests/challenges/library
# tests-metalens:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/metalens
# tests-library-challenge:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/library/test_challenge.py
# tests-library-component:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/library/test_component.py
# tests-library-reference:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/library/test_reference_nanostructures.py
# tests-library-rotation:
# runs-on: ubuntu-latest
# timeout-minutes: 3
# steps:
# - name: Checkout repository
# uses: actions/checkout@v4
# - name: Set up 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: Run Python tests
# run: pytest tests/challenges/library/test_rotation.py