Skip to content

Update for cryojax-eo 0.2.5 #63

Update for cryojax-eo 0.2.5

Update for cryojax-eo 0.2.5 #63

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"]' || '["ubuntu-latest"]') }}
python-version: ${{ fromJSON(github.base_ref == 'main' && '["3.11", "3.12", "3.13", "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, tests, docs]'
- name: Checks with pre-commit
run: |
uv run --no-sync pre-commit run --all-files
- name: Run tests
run: |
uv run --no-sync pytest tests/
- name: Check that documentation can be built.
run: |
uv run --no-sync mkdocs build