Skip to content

ci: Use uv based workflow #239

ci: Use uv based workflow

ci: Use uv based workflow #239

Workflow file for this run

name: Pymarkdownlnt
# Runs the workflow on the below events:
# 1. on pull request raised to trunk branch.
# 2. on push event to trunk branch.
on:
push:
branches:
- trunk
pull_request:
branches:
- trunk
permissions: # added using https://github.com/step-security/secure-workflows
contents: read
jobs:
lint-markdown:
runs-on: ubuntu-24.04
name: Lint Markdown
steps:
- name: Set up Python
uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: 3.13 #install the python needed
- name: Install uv
uses: astral-sh/setup-uv@887a942a15af3a7626099df99e897a18d9e5ab3a # v5.1.0
with:
version: "0.5.15"
- name: Install Poetry
uses: abatilo/actions-poetry@3765cf608f2d4a72178a9fc5b918668e542b89b1 # v4.0.0
with:
poetry-version: '2.0.0'
poetry-plugins: 'poetry-plugin-export'
- name: checkout repo content
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Install and run linter
run: |-
cd tools
uv venv
. .venv/bin/activate
poetry export --format requirements.txt --output requirements.txt
uv pip install --require-hashes -r requirements.txt
cd ..
pymarkdownlnt -s 'plugins.md024.siblings_only=$!True' scan */*.md