Run pylint via GitHub Actions
Get pylint results much easier by using GitHub Actions. Signed-off-by: Major Hayden <major@redhat.com>
This commit is contained in:
parent
461348b652
commit
f2c9276765
1 changed files with 31 additions and 0 deletions
31
.github/workflows/lint.yml
vendored
Normal file
31
.github/workflows/lint.yml
vendored
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
name: Linting
|
||||
|
||||
# NOTE(mhayden): Restricting branches prevents jobs from being doubled since
|
||||
# a push to a pull request triggers two events.
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- "*"
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
pylint:
|
||||
name: "pylint"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: docker.io/library/python:3.7
|
||||
steps:
|
||||
- name: Install pylint
|
||||
run: pip install pylint==2.4.1
|
||||
|
||||
- name: Clone repository
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
path: osbuild
|
||||
|
||||
- name: Run pylint
|
||||
run: |
|
||||
cd osbuild
|
||||
pylint osbuild runners/* assemblers/* stages/* sources/*
|
||||
Loading…
Add table
Add a link
Reference in a new issue