Skip to content

Prepare and harden publishing for 0.2.0 #35

Prepare and harden publishing for 0.2.0

Prepare and harden publishing for 0.2.0 #35

Workflow file for this run

name: Python application
on:
push:
branches: [master]
pull_request:
permissions:
contents: read
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- run: uv run ruff format --check .
- run: uv run ruff check .
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.10', '3.11', '3.12', '3.13', '3.14']
markdown: ['locked']
include:
# Lowest supported Markdown (pyproject: Markdown>=3.2). Overrides the
# `markdown` axis value, so this becomes an extra job instead of
# being merged into the py3.10 one.
- python-version: '3.10'
markdown: '3.2.*'
name: test (py${{ matrix.python-version }}${{ matrix.markdown != 'locked' && format(', markdown {0}', matrix.markdown) || '' }})
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
python-version: ${{ matrix.python-version }}
- name: Test
if: ${{ matrix.markdown == 'locked' }}
run: uv run pytest -v
- name: Test with lowest Markdown
if: ${{ matrix.markdown != 'locked' }}
run: uv run --isolated --with "markdown==${{ matrix.markdown }}" pytest -v
# Single stable check name for the branch ruleset, independent of the matrix
ci-ok:
if: always()
needs: [lint, test]
runs-on: ubuntu-latest
steps:
- run: test "${{ needs.lint.result }}" = success && test "${{ needs.test.result }}" = success