From cbee1b71fe72ef9f671a498ee0b63d2b667a75a6 Mon Sep 17 00:00:00 2001 From: Raphael Michel Date: Fri, 25 Oct 2024 17:05:58 +0200 Subject: [PATCH] CI: Install dependencies with uv for speedup (#4558) --- .github/workflows/strings.yml | 4 ++-- .github/workflows/style.yml | 4 ++-- .github/workflows/tests.yml | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/strings.yml b/.github/workflows/strings.yml index b01d8ec7c7..2a36eaadbe 100644 --- a/.github/workflows/strings.yml +++ b/.github/workflows/strings.yml @@ -37,7 +37,7 @@ jobs: - name: Install system packages run: sudo apt update && sudo apt install gettext - name: Install Dependencies - run: pip3 install -e ".[dev]" + run: pip3 install uv && uv pip install --system -e ".[dev]" - name: Compile messages run: python manage.py compilemessages working-directory: ./src @@ -62,7 +62,7 @@ jobs: - name: Install system packages run: sudo apt update && sudo apt install enchant-2 hunspell hunspell-de-de aspell-en aspell-de - name: Install Dependencies - run: pip3 install -e ".[dev]" + run: pip3 install uv && uv pip install --system -e ".[dev]" - name: Spellcheck translations run: potypo working-directory: ./src diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index 0c284155a2..4ecec238fb 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -35,7 +35,7 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - name: Install Dependencies - run: pip3 install -e ".[dev]" psycopg2-binary + run: pip3 install uv && uv pip install --system -e ".[dev]" psycopg2-binary - name: Run isort run: isort -c . working-directory: ./src @@ -55,7 +55,7 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - name: Install Dependencies - run: pip3 install -e ".[dev]" psycopg2-binary + run: pip3 install uv && uv pip install --system -e ".[dev]" psycopg2-binary - name: Run flake8 run: flake8 . working-directory: ./src diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index ee5068a43b..5b8bceaf88 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -52,7 +52,7 @@ jobs: - name: Install system dependencies run: sudo apt update && sudo apt install gettext - name: Install Python dependencies - run: pip3 install --ignore-requires-python -e ".[dev]" psycopg2-binary # We ignore that flake8 needs newer python as we don't run flake8 during tests + run: pip3 install uv && uv pip install --system -e ".[dev]" psycopg2-binary - name: Run checks run: python manage.py check working-directory: ./src