From 659f9fc6a2daa5ddb28583e6c57c8977787bff32 Mon Sep 17 00:00:00 2001 From: bosd Date: Mon, 23 Dec 2024 00:55:09 +0100 Subject: [PATCH] CI: Only install dependensies in required sessions Prevent the unneccesary runtime for installing dependencies. E.g. for linting or docs sessions --- .github/workflows/tests.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 23ad86d8..1660e95d 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -53,7 +53,7 @@ jobs: run: uv venv - name: Install system dependencies (Linux) - if: matrix.os == 'ubuntu-latest' + if: matrix.os == 'ubuntu-latest' && matrix.session is in ("tests", "typeguard", "mypy") run: | sudo apt update sudo apt install tesseract-ocr poppler-utils imagemagick ghostscript