From 36fea96bb6c90f93bdbdc6ff95c694b443d545fe Mon Sep 17 00:00:00 2001 From: Josh Lay Date: Tue, 29 Aug 2023 23:46:59 -0500 Subject: [PATCH] forgejo: move DNF perf tweak to separate step --- .forgejo/workflows/pylint.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.forgejo/workflows/pylint.yml b/.forgejo/workflows/pylint.yml index 19c159b..9a2d92e 100644 --- a/.forgejo/workflows/pylint.yml +++ b/.forgejo/workflows/pylint.yml @@ -8,19 +8,24 @@ jobs: container: image: fedora:38 # lock to latest *stable*; rawhide/next is 'latest' tag steps: - - name: Install package dependencies + - name: Make DNF faster run: | - echo "Making DNF more performant with these directives:" + echo "Giving DNF these directives:" echo -e 'max_parallel_downloads=20\ndeltarpm=False\nfastestmirror=False' | tee -a /etc/dnf/dnf.conf - dnf -yq install nodejs git python3-pip + + - name: Install package dependencies + run: dnf -yq install nodejs git python3-pip + - uses: actions/checkout@v3 - name: Install Python dependencies run: | python3 -m pip -q install --upgrade pip python3 -m pip -q install --no-compile -r requirements.txt python3 -m pip -q install pylint + - name: Show Python modules / versions run: python3 -m pip list + - name: Analyse the code with pylint run: | pylint $(git ls-files '*.py')