GH action: use Fedora container for Pylint
This commit is contained in:
parent
ed6b01bb97
commit
21a947d64f
1 changed files with 13 additions and 6 deletions
17
.github/workflows/ci.yml
vendored
17
.github/workflows/ci.yml
vendored
|
|
@ -10,16 +10,23 @@ on:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
pylint:
|
pylint:
|
||||||
name: Source code linting
|
name: "🐍 Lint"
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
container:
|
||||||
|
image: registry.fedoraproject.org/fedora:latest
|
||||||
steps:
|
steps:
|
||||||
- name: "Clone Repository"
|
|
||||||
|
- name: Install test dependencies
|
||||||
|
run: dnf -y install python3-flexmock python3-httpretty python3-jsonschema python3-koji python3-pylint python3-requests
|
||||||
|
|
||||||
|
- name: Check out code
|
||||||
uses: actions/checkout@v3
|
uses: actions/checkout@v3
|
||||||
- name: "Run pylint"
|
|
||||||
uses: osbuild/koji-osbuild/test@main
|
|
||||||
with:
|
with:
|
||||||
|
ref: ${{ github.event.pull_request.head.sha }}
|
||||||
|
|
||||||
|
- name: Analysing the code with pylint
|
||||||
run: |
|
run: |
|
||||||
pylint plugins/**/*.py test/**/*.py
|
python3 -m pylint plugins/**/*.py test/**/*.py
|
||||||
|
|
||||||
unit:
|
unit:
|
||||||
name: Unit tests
|
name: Unit tests
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue