diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..1399b2f --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,27 @@ +name: check_lint +on: + push: + pull_request: + +concurrency: + group: check-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + name: Check formatting + runs-on: ubuntu-latest + strategy: + fail-fast: false + steps: + - uses: actions/checkout@v3 + with: + fetch-depth: 0 + - name: Setup python for test py3.11 + uses: actions/setup-python@v4 + with: + python-version: py3.11 + - name: Install tox + run: python -m pip install '.[test]' + - name: Run test suite + run: tox -e lint diff --git a/tox.ini b/tox.ini new file mode 100644 index 0000000..a998c25 --- /dev/null +++ b/tox.ini @@ -0,0 +1,12 @@ +[tox] +skipsdist = true + +[testenv:cov] +allowlist_externals = pytest +commands = + pytest --doctest-modules tests --cov --cov-config=pyproject.toml --cov-report=xml + +[testenv:lint] +allowlist_externals = pylint +commands = + pylint mkpdfs_mkdocs/