| 1 |
name: Docs |
| 2 |
|
| 3 |
# Controls when the action will run. |
| 4 |
on: |
| 5 |
# Triggers the workflow on push or pull request events but only for the main branch |
| 6 |
push: |
| 7 |
pull_request: |
| 8 |
|
| 9 |
# Allows you to run this workflow manually from the Actions tab |
| 10 |
workflow_dispatch: |
| 11 |
|
| 12 |
jobs: |
| 13 |
build: |
| 14 |
runs-on: ubuntu-latest |
| 15 |
|
| 16 |
steps: |
| 17 |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it |
| 18 |
- uses: actions/checkout@v4 |
| 19 |
with: |
| 20 |
fetch-depth: 0 |
| 21 |
|
| 22 |
- uses: actions/setup-python@v5 |
| 23 |
with: |
| 24 |
python-version: "3.10" |
| 25 |
cache: "pip" |
| 26 |
cache-dependency-path: "requirements*.txt" |
| 27 |
|
| 28 |
- name: Install uv |
| 29 |
uses: astral-sh/setup-uv@v6 |
| 30 |
with: |
| 31 |
enable-cache: true |
| 32 |
|
| 33 |
- name: Install dependencies |
| 34 |
run: sudo apt-get install enchant-2 |
| 35 |
|
| 36 |
- name: Build docs with tox |
| 37 |
env: |
| 38 |
TOX_ENV: docs |
| 39 |
run: uvx tox -e $TOX_ENV |