Skip to content

Commit

Permalink
Add pylint to GitHub Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
dechamps committed Nov 13, 2023
1 parent 3a10c3e commit d007a6d
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/continuous-integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,19 @@ jobs:
with:
name: sdist
path: dist/videojitter-*.tar.gz
if-no-files-found: error
if-no-files-found: error
pylint:
runs-on: ubuntu-latest
needs: build-sdist
steps:
- uses: actions/checkout@v4
- run: pip install --requirement pylint-requirements.txt
- uses: actions/download-artifact@v3
with:
name: sdist
path: /tmp/sdist-artifact
- run: mkdir /tmp/sdist
- run: tar --gzip --extract --verbose --force /tmp/sdist-artifact/videojitter-*.tar.gz --directory /tmp/sdist
# TODO: also pylint the test code
- run: pylint src
working-directory: /tmp/sdist
3 changes: 3 additions & 0 deletions pylint-requirements.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# pip-tools `pip-compile` input file for pinning pylint.
-c requirements.txt
pylint
20 changes: 20 additions & 0 deletions pylint-requirements.txt
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d007a6d

Please sign in to comment.