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
19
.github/workflows/ci.yml
vendored
19
.github/workflows/ci.yml
vendored
|
|
@ -10,16 +10,23 @@ on:
|
|||
|
||||
jobs:
|
||||
pylint:
|
||||
name: Source code linting
|
||||
name: "🐍 Lint"
|
||||
runs-on: ubuntu-latest
|
||||
container:
|
||||
image: registry.fedoraproject.org/fedora:latest
|
||||
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
|
||||
- name: "Run pylint"
|
||||
uses: osbuild/koji-osbuild/test@main
|
||||
with:
|
||||
run: |
|
||||
pylint plugins/**/*.py test/**/*.py
|
||||
ref: ${{ github.event.pull_request.head.sha }}
|
||||
|
||||
- name: Analysing the code with pylint
|
||||
run: |
|
||||
python3 -m pylint plugins/**/*.py test/**/*.py
|
||||
|
||||
unit:
|
||||
name: Unit tests
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue