concepts.trr379.de/.forgejo/workflows/validate-examples.yaml
Michael Hanke 105bb07c92
Some checks failed
Codespell / Check for spelling errors (push) Successful in 19s
Model checks / lint (push) Failing after 1m13s
Validate examples and verify unmodified conversion / lint (push) Failing after 54s
Fix up workflows for hatch installation issue
2025-09-27 14:56:13 +02:00

32 lines
984 B
YAML

name: Validate examples and verify unmodified conversion
on:
push:
branches:
- main
pull_request:
jobs:
lint:
runs-on: docker
container:
image: python:3.11-slim-bookworm
steps:
- name: Setup environment
run: |
apt-get update && apt-get install --yes --no-install-recommends git make patch curl
- name: Install uv
run: curl -LsSf https://astral.sh/uv/install.sh | sh
# click version is temporary fix for https://github.com/pypa/hatch/issues/2050
# python -m pip install hatch
- name: Install hatch
run: uv tool install hatch --with 'click <8.3'
- name: Checkout
run: |
git clone "$(echo ${GITHUB_SERVER_URL} | cut -d : -f1)://${GITHUB_TOKEN}:@$(echo ${GITHUB_SERVER_URL} | cut -d / -f3-)/${GITHUB_REPOSITORY}.git" .
git checkout "${GITHUB_HEAD_REF:-${GITHUB_REF_NAME}}"
- name: Run checks
run: |
hatch run check:examples