Skip to content

Support parsing of .pyi stub files (#7) #13

Support parsing of .pyi stub files (#7)

Support parsing of .pyi stub files (#7) #13

Workflow file for this run

name: Run Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- name: Build using Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install pdm and python_docstring_markdown
run: |
pip install pdm
pdm self update
pdm install
- name: Run black
run: |
pdm run black --check --diff src/python_docstring_markdown/ tests/
- name: Run isort
run: |
pdm run isort src/python_docstring_markdown/ tests/ --check-only --diff
- name: Run autoflake
run: |
pdm run autoflake --check-diff --remove-unused-variables --remove-all-unused-imports --recursive src/python_docstring_markdown/ tests/
- name: Run pylint
run: |
pdm run pylint --fail-under=7.0 src/python_docstring_markdown/ tests/
- name: Run pyright
run: |
pdm run pyright
- name: Test with pytest
run: |
pdm run pytest