Handle version specifiers with ~= #445
Workflow file for this run
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: Test website generation | |
on: | |
workflow_dispatch: | |
pull_request: | |
paths-ignore: | |
- "tests/**" | |
- "examples/**" | |
- "**.json" | |
- "**.csv" | |
- "**.html" | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | |
cancel-in-progress: true | |
jobs: | |
test-website: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
with: | |
python-version: "3.12" | |
- uses: astral-sh/setup-uv@v3 | |
with: | |
version: "latest" | |
- run: uv pip install -e .[dev] --system | |
- run: uv pip freeze | |
- name: Regenerate examples and docs | |
run: python scripts/regenerate.py --download-typeshed | |
- name: Check the generated files with pre-commit | |
uses: pre-commit/[email protected] | |
- name: Build docs | |
run: mkdocs build --strict | |
- name: Upload docs | |
uses: actions/upload-artifact@v4 | |
with: | |
name: doc-html | |
path: site |