Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
6 changes: 3 additions & 3 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
uv venv .test-venv
source .test-venv/bin/activate
uv pip install dist/*.whl --reinstall
uv pip install --group dev --group examples
uv pip install --group dev --group docs --group examples
pytest -v

- uses: actions/upload-artifact@v5
Expand Down Expand Up @@ -104,7 +104,7 @@ jobs:
uv pip install dist/*.whl --reinstall

# Install dev dependencies from pyproject.toml using pip interface
uv pip install --group dev --group examples
uv pip install --group dev --group docs --group examples

# Run tests directly
pytest -v
Expand Down Expand Up @@ -132,7 +132,7 @@ jobs:
sudo apt-get install -y llvm-18-dev libclang-18-dev libzstd-dev libpolly-18-dev patchelf

- name: Generate stubs
run: cargo run -p chronopt-py --no-default-features --features stubgen --bin generate_stubs
run: cargo run -p diffid-py --no-default-features --features stubgen --bin generate_stubs
env:
LLVM_SYS_181_PREFIX: /usr/lib/llvm-18
LIBCLANG_PATH: /usr/lib/llvm-18/lib
Expand Down
202 changes: 0 additions & 202 deletions .github/workflows/docs-checks.yml

This file was deleted.

45 changes: 23 additions & 22 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,26 @@ name: Documentation

on:
push:
branches:
- main
branches: ["main"]
tags:
- '*'
pull_request:
branches:
- main
workflow_dispatch:

# Prevent concurrent deployments
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ github.event_name == 'pull_request' }}

# Default permissions: read-only
permissions:
contents: write
contents: read

jobs:
build-and-deploy:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
Expand All @@ -29,30 +36,24 @@ jobs:
- name: Install uv
uses: astral-sh/setup-uv@v5

- name: Cache uv dependencies
uses: actions/cache@v4
with:
path: ~/.cache/uv
key: ${{ runner.os }}-uv-docs-deploy-${{ hashFiles('.github/workflows/docs.yml') }}
restore-keys: |
${{ runner.os }}-uv-docs-deploy-

- name: Install dependencies
run: |
uv pip install --system mkdocs
uv pip install --system mkdocs-material
uv pip install --system mkdocstrings[python]
uv pip install --system mkdocs-git-revision-date-localized-plugin
uv pip install --system mkdocs-minify-plugin
uv pip install --system mkdocs-jupyter
uv pip install --system pymdown-extensions
run: uv pip install --system --group docs

- name: Build documentation
run: mkdocs build
run: mkdocs build --strict

- name: Deploy to GitHub Pages
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./site
cname: false # Set to your custom domain if you have one

- name: Upload artifact for PR preview
if: github.event_name == 'pull_request'
uses: actions/upload-artifact@v4
with:
name: docs-preview
path: ./site
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ jobs:
uv venv .test-venv
source .test-venv/bin/activate
uv pip install dist/*.whl --reinstall
uv pip install --group dev --group examples
uv pip install --group dev --group docs --group examples
pytest -v

- uses: actions/upload-artifact@v5
Expand Down Expand Up @@ -106,7 +106,7 @@ jobs:
uv pip install dist/*.whl --reinstall

# Install dev dependencies from pyproject.toml using pip interface
uv pip install --group dev --group examples
uv pip install --group dev --group docs --group examples

# Run tests directly
pytest -v
Expand Down Expand Up @@ -134,7 +134,7 @@ jobs:
sudo apt-get install -y llvm-18-dev libclang-18-dev libzstd-dev libpolly-18-dev patchelf

- name: Generate stubs
run: cargo run -p chronopt-py --no-default-features --features stubgen --bin generate_stubs
run: cargo run -p diffid-py --no-default-features --features stubgen --bin generate_stubs
env:
LLVM_SYS_181_PREFIX: /usr/lib/llvm-18
LIBCLANG_PATH: /usr/lib/llvm-18/lib
Expand Down
54 changes: 27 additions & 27 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading