🎨 Rearrange package section #152
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: ci | |
on: | |
pull_request: | |
push: | |
branches: [main] | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- uses: actions/cache@v4 | |
with: | |
path: ~/.cache/pre-commit | |
key: pre-commit|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml') }} | |
- uses: pre-commit/[email protected] | |
docs: | |
name: Build docs and check links | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: pandoc/actions/setup@v1 | |
- uses: actions/setup-python@v5 | |
with: | |
# Keep in sync with .readthedocs.yaml | |
python-version-file: .python-version | |
- name: Install plantuml | |
run: | | |
sudo apt install plantuml | |
- name: Setup cached uv | |
uses: hynek/setup-cached-uv@v2 | |
- name: Create venv and install docs dependencies | |
run: | | |
uv venv | |
echo "$PWD/.venv/bin" >> $GITHUB_PATH | |
uv pip install -e ".[docs]" | |
- name: Build HTML and check links | |
run: | | |
make html | |
make linkcheck | |
working-directory: docs/ |