Skip to content

Fix incorrect FFTAtomProjection reverse-mode gradients #235

Fix incorrect FFTAtomProjection reverse-mode gradients

Fix incorrect FFTAtomProjection reverse-mode gradients #235

Workflow file for this run

name: CI
on:
pull_request:
branches:
- dev
- main
workflow_dispatch:
jobs:
test:
name: ${{ matrix.os }}-${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ${{ fromJSON(github.base_ref == 'main' && '["ubuntu-latest","macos-latest"]' || '["ubuntu-latest"]') }}
python-version: ${{ fromJSON(github.base_ref == 'main' && '["3.10", "3.14"]' || '["3.11"]') }}
steps:
- name: Checkout repository
uses: actions/checkout@v6
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Install dependencies
run: |
uv venv --python=${{ matrix.python-version }}
uv pip install --upgrade pip
uv pip install -e '.[dev,docs,tests,extras]'
- name: Checks with pre-commit
run: |
uv run --no-sync pre-commit run --all-files
- name: Run tests with coverage
run: |
uv run --no-sync pytest --cov=tests --cov=cryojax --cov-branch --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v5
with:
files: ./coverage.xml
fail_ci_if_error: true
token: ${{ secrets.CODECOV_TOKEN }}
- name: Check that documentation can be built.
run: |
uv run --no-sync mkdocs build