|
name: lint |
|
|
|
on: # zizmor: ignore[dangerous-triggers] |
|
workflow_run: |
|
workflows: [update and build] |
|
types: [completed] |
|
|
|
jobs: |
|
lint: |
|
runs-on: ubuntu-latest |
|
permissions: |
|
contents: read |
|
strategy: |
|
fail-fast: false |
|
matrix: |
|
version: [3.15, 3.14, 3.13, 3.12, 3.11] |
|
continue-on-error: true |
|
steps: |
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
with: |
|
python-version: 3 |
|
- run: pip install sphinx-lint |
|
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 |
|
with: |
|
ref: ${{ matrix.version }} |
|
persist-credentials: false |
|
- uses: rffontenelle/sphinx-lint-problem-matcher@4270bf50b2c93640a7cbb231c09f8e694699af9f # v1.0.0 |
|
- run: sphinx-lint |
|
|
|
lint-epub: |
|
if: github.event.workflow_run.conclusion == 'success' |
|
runs-on: ubuntu-latest |
|
permissions: |
|
actions: read |
|
strategy: |
|
matrix: |
|
version: [3.15, 3.14] |
|
continue-on-error: true |
|
steps: |
|
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 |
|
with: |
|
python-version: 3 |
|
- uses: astral-sh/setup-uv@c18668ad3cf93ea998bef934396af7bb5c839dc7 # v10.2.0 |
|
- uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1 |
|
with: |
|
name: build-${{ matrix.version }}-epub |
|
run-id: ${{ github.event.workflow_run.id }} |
|
github-token: ${{ secrets.GITHUB_TOKEN }} |
|
- run: uvx epubcheck |