From c7ca0aa1e2864f68576c3087e36aaf96c9449467 Mon Sep 17 00:00:00 2001 From: jurgenwigg Date: Tue, 3 Oct 2023 20:42:17 +0000 Subject: [PATCH] feat: added checking formatting workflow --- .github/workflows/python-package.yml | 27 +++++++++++++++++++++++++++ tox.ini | 12 ++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 .github/workflows/python-package.yml create mode 100644 tox.ini 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/