Skip to content

v1.2.1

v1.2.1 #33

Workflow file for this run

name: Check tests & typing
on:
pull_request:
push:
release:
jobs:
test:
name: Test Python ${{ matrix.python-version }} on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
steps:
- uses: actions/checkout@v3
with:
submodules: recursive
- name: Patch cmark-gfm
uses: ./.github/actions/cmark-gfm-patch
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install -U pip pytest
python -m pip install -e .
- name: Test with pytest
run: pytest tests
- name: Test installing from sdist
run: |
python setup.py sdist
python -m venv /tmp/sdist-test
/tmp/sdist-test/bin/pip install ./dist/*.tar.gz
/tmp/sdist-test/bin/python -c 'import pycmarkgfm; print(pycmarkgfm.gfm_to_html("it *works*"))' | grep '<p>it <em>works</em></p>'
check-typing:
name: Check typing with mypy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
with:
python-version: '3.11'
- name: Install dependencies
run: python -m pip install mypy
- name: Check types
run: mypy pycmarkgfm/ tests/