Skip to content

💚 Refactor sync-uv workflow to use composite actions and … #330

💚 Refactor sync-uv workflow to use composite actions and …

💚 Refactor sync-uv workflow to use composite actions and … #330

Workflow file for this run

name: "Documentation Checks"

Check failure on line 1 in .github/workflows/docs-checks.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/docs-checks.yml

Invalid workflow file

reusable workflows should be referenced at the top-level `jobs.*.uses' key, not within steps
on:
push:
paths:
- "discord/**"
- "docs/**"
- "requirements/**"
- "*.toml"
- "*.py"
branches: [master]
pull_request:
paths:
- "discord/**"
- "docs/**"
- "requirements/"
- "*.toml"
- "*.py"
workflow_dispatch:
inputs:
with_linkcheck:
type: boolean
description: "Whether to run the linkcheck"
default: true
schedule:
- cron: "0 0 * * *"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
permissions: write-all
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: "Checkout Repository"
uses: actions/checkout@v5
- name: "Setup Python"
uses: actions/setup-python@v5
with:
python-version: "3.13"
- name: "Setup UV"
uses: pycord-development/pycord-next/.github/workflows/sync-uv.yml@master
with:
groups: 'dev,docs'
- name: "Check Links"
env:
SPHINXBUILD: ${{ github.workspace }}/.venv/bin/sphinx-build
if: ${{ github.event_name == 'schedule' || inputs.with_linkcheck }}
run: |
cd docs
make linkcheck
- name: "Compile to html"
env:
SPHINXBUILD: ${{ github.workspace }}/.venv/bin/sphinx-build
run: |
cd docs
make -e SPHINXOPTS="-D language='en'" html