Mistune 3 parser refactor + CI tooling #6
This file contains hidden or 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: CI | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| types: [opened, synchronize, reopened, ready_for_review] | |
| push: | |
| branches: [master] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| cache: "pip" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install .[tests] | |
| - name: Format check | |
| run: python -m autopep8 --exit-code --diff --max-line-length 120 -r sdiff tests | |
| - name: Lint | |
| run: python -m flake8 --config .flake8 sdiff tests | |
| - name: Test | |
| run: python -m coverage run -m pytest -s --durations=3 --durations-min=0.005 | |
| - name: Coverage report | |
| run: python -m coverage report -m |