Get pylint results much easier by using GitHub Actions. Signed-off-by: Major Hayden <major@redhat.com>
31 lines
655 B
YAML
31 lines
655 B
YAML
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/*
|