diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 7b599bd..29dd295 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -10,4 +10,15 @@ jobs: with: name: sdist path: dist/videojitter-*.tar.gz - if-no-files-found: error \ No newline at end of file + if-no-files-found: error + pylint: + runs-on: ubuntu-latest + needs: build-sdist + steps: + - uses: actions/download-artifact@v3 + with: + name: sdist + - run: tar --gzip --extract --verbose --file videojitter-*.tar.gz + - run: pip install --requirement pylint-requirements.txt --requirement requirements.txt + # TODO: also pylint the test code + - run: pylint src diff --git a/pylint-requirements.in b/pylint-requirements.in new file mode 100644 index 0000000..b568641 --- /dev/null +++ b/pylint-requirements.in @@ -0,0 +1,3 @@ +# pip-tools `pip-compile` input file for pinning pylint. +-c requirements.txt +pylint diff --git a/pylint-requirements.txt b/pylint-requirements.txt new file mode 100644 index 0000000..1ae1443 --- /dev/null +++ b/pylint-requirements.txt @@ -0,0 +1,20 @@ +# +# This file is autogenerated by pip-compile with Python 3.11 +# by the following command: +# +# pip-compile --strip-extras pylint-requirements.in +# +astroid==3.0.1 + # via pylint +dill==0.3.7 + # via pylint +isort==5.12.0 + # via pylint +mccabe==0.7.0 + # via pylint +platformdirs==4.0.0 + # via pylint +pylint==3.0.2 + # via -r pylint-requirements.in +tomlkit==0.12.2 + # via pylint