From 8730d60530a111779c756f29a4f26fb041beffd9 Mon Sep 17 00:00:00 2001 From: Nashwan Azhari Date: Tue, 19 Nov 2024 16:22:29 +0200 Subject: [PATCH] ci: ensure pylint and flake8 are installed in the TiCS workflow. Signed-off-by: Nashwan Azhari --- .github/workflows/tiobe-tics-cron.yaml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/tiobe-tics-cron.yaml b/.github/workflows/tiobe-tics-cron.yaml index f8cfd675..d5b20ff8 100644 --- a/.github/workflows/tiobe-tics-cron.yaml +++ b/.github/workflows/tiobe-tics-cron.yaml @@ -39,8 +39,19 @@ jobs: run: | set -eux -o pipefail + # Upgrade pip to be able to read the requirements.txt + sudo python3 -m pip install --upgrade pip + + # tox required for running the unit tests with coverage: sudo python3 -m pip install tox + # Required by TICSQServer: + sudo python3 -m pip install pylint flake8 + + # Must pre-install dependencies for TICSQServer: + sudo python3 -m pip install -r $GITHUB_WORKSPACE/charms/worker/k8s/requirements.txt + sudo python3 -m pip install -r $GITHUB_WORKSPACE/test_requirements.txt + - name: Install Go for Cobertura Coverage Converter uses: actions/setup-go@v5 with: