Skip to content

Add pylint to GitHub Actions #5

Add pylint to GitHub Actions

Add pylint to GitHub Actions #5

on: [push, pull_request]
jobs:
build-sdist:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: pip install build
- run: python -m build --sdist
- uses: actions/upload-artifact@v3
with:
name: sdist
path: dist/videojitter-*.tar.gz
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