Skip to content

build(deps-dev): bump astral-sh/setup-uv from 3.2.2 to 3.2.3 #234

build(deps-dev): bump astral-sh/setup-uv from 3.2.2 to 3.2.3

build(deps-dev): bump astral-sh/setup-uv from 3.2.2 to 3.2.3 #234

Workflow file for this run

name: Build and deploy docs
on:
release:
types:
- published
pull_request:
branches:
- main
paths:
- '.github/workflows/docs.yaml'
- 'dev/mkdocs.yaml'
- 'docs/**/*'
push:
branches:
- main
paths:
- '.github/workflows/docs.yaml'
- 'dev/mkdocs.yaml'
- 'docs/**/*'
permissions:
contents: write
env:
UV_SYSTEM_PYTHON: 1
jobs:
build_docs:
if: |
github.event_name == 'pull_request' ||
github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install uv
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
with:
enable-cache: true
cache-dependency-glob: '**/*requirements.txt'
- name: Set up Python 3.12
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.12'
- name: Install dependencies
run: |
uv pip install --upgrade pip setuptools wheel
uv pip install -r requirements.txt -r dev/requirements/docs_requirements.txt
- name: Build maps
run: |
python -m docs.scripts.build_maps
- name: Build docs
run: |
mkdocs build -f dev/mkdocs.yaml
build_and_deploy_docs:
if: |
github.event_name == 'release'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Configure Git credentials
run: |
git config user.name github-actions[bot]
git config user.email 41898282+github-actions[bot]@users.noreply.github.com
- name: Install uv
uses: astral-sh/setup-uv@e779db74266a80753577425b0f4ee823649f251d # v3.2.3
with:
enable-cache: true
cache-dependency-glob: '**/*requirements.txt'
- name: Set up Python 3.12
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: '3.12'
- name: Install dependencies
run: |
uv pip install --upgrade pip setuptools wheel
uv pip install -r requirements.txt -r dev/requirements/docs_requirements.txt
- name: Build maps
run: |
python -m docs.scripts.build_maps
- name: Build and deploy docs
run: |
mkdocs gh-deploy -f dev/mkdocs.yaml --force