Skip to content

Commit

Permalink
feat: added checking formatting workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jurgenwigg committed Oct 3, 2023
1 parent e3c0ba7 commit c7ca0aa
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -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
12 changes: 12 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -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/

0 comments on commit c7ca0aa

Please sign in to comment.