Skip to content

Commit

Permalink
CI: Uses uv pip to speed up workflows (#362)
Browse files Browse the repository at this point in the history
* 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.

* CI: Add --system to uv pip install
  • Loading branch information
EwoutH authored May 24, 2024
1 parent 712807e commit 759edb6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,18 +39,16 @@ 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 .[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
pip install mpi4py
uv pip install mpi4py --system
- name: Test with Pytest
timeout-minutes: 15
run:
Expand Down

0 comments on commit 759edb6

Please sign in to comment.