Skip to content

chore(deps): update uv (#305) #269

chore(deps): update uv (#305)

chore(deps): update uv (#305) #269

Workflow file for this run

# SPDX-FileCopyrightText: Copyright (C) 2025 Opal Health Informatics Group at the Research Institute of the McGill University Health Centre <[email protected]>
#
# SPDX-License-Identifier: MIT
name: ci
on:
push:
branches:
- main
pull_request:
merge_group:
workflow_call:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
# don't cancel any workflows on the main branch
cancel-in-progress: ${{ github.ref != 'refs/heads/main' }}
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
persist-credentials: false
- uses: astral-sh/[email protected]
id: setup-uv
with:
# renovate: datasource=pypi dependency=uv
version: "0.7.2"
- name: Install pre-commit
run: |
uv sync --locked --only-dev
- uses: mschoettle/[email protected]
env:
SKIP: markdownlint-cli2,reuse-lint-file
run-reuse-workflow:
uses: opalmedapps/.github/.github/workflows/reuse.yaml@main
markdownlint:
permissions:
contents: read
# required for upload-sarif action
# https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/uploading-a-sarif-file-to-github#example-workflow-for-sarif-files-generated-outside-of-a-repository
security-events: write
uses: opalmedapps/.github/.github/workflows/markdownlint.yaml@main
with:
semantic-linebreak: false
build:
runs-on: ubuntu-latest
needs:
- lint
steps:
- uses: actions/[email protected]
with:
persist-credentials: false
# fetch the full git history to be able to determine creation dates for pages
# see: https://github.com/timvink/mkdocs-git-revision-date-localized-plugin?tab=readme-ov-file#note-when-using-build-environments
fetch-depth: 0
- uses: astral-sh/[email protected]
id: setup-uv
with:
# renovate: datasource=pypi dependency=uv
version: "0.7.2"
- name: Install dependencies
run: |
uv sync --locked
# see: https://squidfunk.github.io/mkdocs-material/publishing-your-site/#with-github-actions
# weekly cache updates
- run: echo "cache_id=$(date --utc '+%V')" >> "$GITHUB_ENV"
- uses: actions/[email protected]
with:
# weekly cache
key: mkdocs-material-${{ env.cache_id }}
path: .cache
restore-keys: |
mkdocs-material-
- name: Build site
run: uv run mkdocs build --strict
deploy:
uses: ./.github/workflows/deploy.yml
if: success() && github.ref == 'refs/heads/main'
needs:
- lint
- markdownlint
- build
permissions:
contents: write