Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 8 additions & 12 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,15 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
with:
python-version: '3.14'
enable-cache: true
- name: Install pandoc
run: sudo apt-get install -y pandoc
- name: Install Python dependencies
run: |
python -m pip install uv
uv pip install --system -e ".[docs]"
run: uv sync --extra docs --no-default-groups --frozen
- name: Build documentation
run: python -m sphinx.cmd.build docs doc_build -j2
run: uv run python -m sphinx.cmd.build docs doc_build -j2
- name: Deploy to atomicateam/docs
uses: JamesIves/github-pages-deploy-action@v4
with:
Expand All @@ -58,21 +56,19 @@ jobs:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
- uses: astral-sh/setup-uv@v6
if: github.event.action != 'closed'
with:
python-version: '3.14'
enable-cache: true
- name: Install pandoc
if: github.event.action != 'closed'
run: sudo apt-get install -y pandoc
- name: Install Python dependencies
if: github.event.action != 'closed'
run: |
python -m pip install uv
uv pip install --system -e ".[docs]"
run: uv sync --extra docs --no-default-groups --frozen
- name: Build documentation
if: github.event.action != 'closed'
run: python -m sphinx.cmd.build docs doc_build -j2
run: uv run python -m sphinx.cmd.build docs doc_build -j2
- name: Deploy / update / remove preview
uses: rossjrw/pr-preview-action@v1
with:
Expand Down
42 changes: 42 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: Tests

on:
workflow_dispatch:
pull_request:

permissions:
contents: read
checks: write
pull-requests: write

jobs:
test:
name: Tests (${{ matrix.os }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
runs-on: ${{ matrix.os }}
steps:
- name: Checkout sources
uses: actions/checkout@v4

- name: Install uv
uses: astral-sh/setup-uv@v6
with:
enable-cache: true

# Python version comes from .python-version (read automatically by uv)
- name: Install dependencies
run: uv sync --extra test --no-default-groups --frozen

# pytest config (junit, coverage, -n 2) lives in tox.ini [pytest]; these
# flags add the notebook (nbval) validation that tox layered on top
- name: Run tests
run: uv run pytest --nbval-lax --current-env --nbval-cell-timeout=600 --dist loadscope --durations=25

- name: Publish test results
uses: mikepenz/action-junit-report@v6
if: always()
with:
report_paths: junit/test-results.xml
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ target/
.ipynb_checkpoints

# pyenv
.python-version
# .python-version is intentionally tracked to pin the Python version for uv

# celery beat schedule file
celerybeat-schedule
Expand Down
1 change: 1 addition & 0 deletions .python-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.14
Loading
Loading