mirror of
https://github.com/kennethreitz/responder.git
synced 2026-06-05 23:00:17 +00:00
c1d789f279
## About That's just maintenance. In this case, streamline the CI configuration for improved ergonomics and future proofing, see GH-605. ## Details - `activate-environment: true` of newer `astral-sh/setup-uv@v7` is the killer feature here, which wasn't available before. - Configuring `cache-dependency-glob: pyproject.toml` isn't needed, because the recipe already employs an excellent default configuration that includes this and other project metadata files. - The adjustments in `test_cli` were needed because of a different PyPy version installed by `setup-uv`. This will yield a report to Astral maintainers, unrelated to this patch.
46 lines
1.0 KiB
YAML
46 lines
1.0 KiB
YAML
name: "Documentation"
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request: ~
|
|
workflow_dispatch:
|
|
|
|
# Cancel redundant in-progress jobs.
|
|
concurrency:
|
|
group: ${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
permissions:
|
|
contents: write
|
|
|
|
jobs:
|
|
|
|
documentation:
|
|
name: "Documentation"
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install uv
|
|
uses: astral-sh/setup-uv@v7
|
|
with:
|
|
activate-environment: true
|
|
enable-cache: true
|
|
python-version: "3.14"
|
|
|
|
- name: Install package and documentation dependencies
|
|
run: uv pip install '.[docs]'
|
|
|
|
- name: Build static HTML documentation
|
|
run: sphinx-build -W --keep-going docs/source docs/build
|
|
|
|
- name: Deploy to GitHub Pages
|
|
if: github.ref == 'refs/heads/main' && github.event_name == 'push'
|
|
uses: peaceiris/actions-gh-pages@v4
|
|
with:
|
|
github_token: ${{ secrets.GITHUB_TOKEN }}
|
|
publish_dir: ./docs/build
|
|
cname: responder.kennethreitz.org
|