Skip to content

markdown: Add a failing test for pymdownx.superfences vs. fenced_code #120

markdown: Add a failing test for pymdownx.superfences vs. fenced_code

markdown: Add a failing test for pymdownx.superfences vs. fenced_code #120

Workflow file for this run

name: tests
on: [push, pull_request]
jobs:
test:
strategy:
matrix:
python:
- '3.10'
- '3.11'
- '3.12'
- '3.13'
- pypy-3.10
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
- name: Install pymarkups and all optional dependencies
run: |
pip install --upgrade pip setuptools
pip install .[markdown,restructuredtext,textile,asciidoc,highlighting]
pip install codecov pymdown-extensions
- name: Run tests
run: coverage run -m unittest discover -s tests -v
- name: Run the doctest
run: python -m doctest README.rst -v
- name: Upload reports to Codecov
if: ${{ matrix.python == '3.13' }}
run: codecov
mypy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install mypy and type stubs
run: python -m pip install mypy types-docutils types-PyYAML types-Markdown
- name: Run mypy
run: mypy --ignore-missing-imports --strict .
ruff:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- name: Install ruff
run: python -m pip install ruff
- name: Run ruff check
run: ruff check --select F,E,W,I,UP --target-version py310 .
- name: Run ruff format
run: ruff format --diff .