From ba3631d23512eb995edf38d4b1839e3e4be6f923 Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 24 May 2024 15:06:41 +0200 Subject: [PATCH 1/2] CI: Uses uv pip to speed up workflows Use uv for pip commands to speed up CI workflows. uv uses Rust to install dependencies way faster. --- .github/workflows/ci.yml | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index de4af9bc4..ab1ea017d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -39,18 +39,17 @@ jobs: uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - cache: 'pip' - cache-dependency-path: 'pyproject.toml' + - run: pip install uv - name: Install dependencies run: | - pip install --upgrade pip - pip install .[dev,cov] ${{ matrix.pip-pre }} + uv pip install --upgrade pip + uv pip install .[dev,cov] ${{ matrix.pip-pre }} - name: Install MPI and mpi4py if: matrix.test-mpi == true run: | sudo apt-get update sudo apt-get install -y libopenmpi-dev - pip install mpi4py + uv pip install mpi4py - name: Test with Pytest timeout-minutes: 15 run: From 3fedd51467d5a7a7bc96b3376e83f28cad3ae84a Mon Sep 17 00:00:00 2001 From: Ewout ter Hoeven Date: Fri, 24 May 2024 15:09:31 +0200 Subject: [PATCH 2/2] CI: Add --system to uv pip install --- .github/workflows/ci.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ab1ea017d..5a04becd2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -42,14 +42,13 @@ jobs: - run: pip install uv - name: Install dependencies run: | - uv pip install --upgrade pip - uv pip install .[dev,cov] ${{ matrix.pip-pre }} + uv pip install .[dev,cov] --system ${{ matrix.pip-pre }} - name: Install MPI and mpi4py if: matrix.test-mpi == true run: | sudo apt-get update sudo apt-get install -y libopenmpi-dev - uv pip install mpi4py + uv pip install mpi4py --system - name: Test with Pytest timeout-minutes: 15 run: