markdown: Import Iterable and Iterator from collections.abc #114
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
static-analysis: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-python@v5 | |
- name: Install flake8, isort and mypy | |
run: | | |
python -m pip install flake8 isort mypy | |
python -m pip install types-docutils types-PyYAML types-Markdown | |
- name: Run flake8 | |
run: flake8 --max-line-length=88 . | |
- name: Run isort | |
run: isort --check-only . | |
- name: Run mypy | |
run: mypy --ignore-missing-imports --strict . |