Skip to content

fix: avoid quadratic inline footnote membership checks #205

fix: avoid quadratic inline footnote membership checks

fix: avoid quadratic inline footnote membership checks #205

Workflow file for this run

name: Run tests
on:
push:
branches-ignore:
- 'wip-*'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
pull_request:
branches-ignore:
- 'wip-*'
paths-ignore:
- 'docs/**'
- '*.md'
- '*.rst'
workflow_dispatch:
jobs:
lint:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@v7
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: python -m pip install --upgrade uv
- name: ruff lint
run: uv run --locked --group lint ruff check .
- name: mypy lint
run: uv run --locked --group lint mypy
test:
needs: lint
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
strategy:
fail-fast: false
max-parallel: 3
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
- "pypy3.11"
steps:
- uses: actions/checkout@v7
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: python -m pip install --upgrade uv
- name: Report coverage
run: uv run --locked --group test pytest --cov=mistune --cov-branch --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
sonar:
needs: test
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: read
steps:
- uses: actions/checkout@v7
with:
ref: ${{ github.event.pull_request.head.sha || github.sha }}
- uses: actions/setup-python@v6
with:
python-version: "3.13"
- name: Install dependencies
run: python -m pip install --upgrade uv
- name: Generate coverage
run: uv run --locked --group test pytest --cov=mistune --cov-branch --cov-report=xml
- name: SonarCloud Scan
uses: SonarSource/sonarqube-scan-action@v8
continue-on-error: true
env:
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}