From 21a947d64f0708199fb2762a1afe44a715ffdcb5 Mon Sep 17 00:00:00 2001 From: Tomas Hozza Date: Tue, 9 Aug 2022 14:58:55 +0200 Subject: [PATCH] GH action: use Fedora container for Pylint --- .github/workflows/ci.yml | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3bd4c02..a0efab7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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