2024-04-21 14:33:22 +00:00
|
|
|
name: Test documentation build
|
|
|
|
|
2024-05-31 21:39:07 +00:00
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
paths:
|
|
|
|
- 'docs/**'
|
|
|
|
- pyproject.toml
|
|
|
|
- poetry.lock
|
2024-04-21 14:33:22 +00:00
|
|
|
|
|
|
|
concurrency:
|
|
|
|
group: ${{ github.workflow }}-$${{ github.head_ref || github.run_id }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2024-05-31 21:39:07 +00:00
|
|
|
permissions:
|
|
|
|
id-token: write
|
|
|
|
contents: read
|
|
|
|
|
2024-04-21 14:33:22 +00:00
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
|
|
|
uses: actions/checkout@v4
|
2024-05-31 21:39:07 +00:00
|
|
|
- uses: DeterminateSystems/nix-installer-action@main
|
|
|
|
- uses: DeterminateSystems/magic-nix-cache-action@main
|
|
|
|
- name: Run tests
|
2024-05-31 22:19:54 +00:00
|
|
|
run: nix develop --command -- poetry install && poetry run mkdocs build --strict
|