Skip to content

Commit 41fab59

Browse files
matthewfeickertBenGalewsky
authored andcommitted
ci: Use uv for all pip installs
* Use 'uv pip' for all calls to 'pip install' in GitHub Actions workflows. - c.f. https://github.com/astral-sh/uv/ * The '--system' call is required as uv requires a virtual environment to be activated without it, and GitHub Actions does not provide a default virtual environment.
1 parent ae0ff0d commit 41fab59

File tree

2 files changed

+14
-10
lines changed

2 files changed

+14
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,8 @@ jobs:
2222

2323
- name: Lint with Flake8
2424
run: |
25-
python -m pip install --upgrade flake8
25+
python -m pip install --upgrade uv
26+
uv pip install --system --upgrade flake8
2627
flake8
2728
2829
test:
@@ -45,9 +46,10 @@ jobs:
4546

4647
- name: Install dependencies
4748
run: |
48-
python -m pip install --upgrade pip setuptools wheel
49-
python -m pip install --upgrade '.[databinder,pandas,test]'
50-
python -m pip list
49+
python -m pip install --upgrade uv
50+
uv pip install --system --upgrade pip setuptools wheel
51+
uv pip install --system --upgrade '.[databinder,pandas,test]'
52+
uv pip list --system
5153
5254
- name: Test with pytest
5355
run: |

.github/workflows/pypi.yaml

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,10 @@ jobs:
2424

2525
- name: Install python-build and twine
2626
run: |
27-
python -m pip install --upgrade pip
28-
python -m pip install build twine
29-
python -m pip list
27+
python -m pip install --upgrade uv
28+
uv pip install --system --upgrade pip
29+
uv pip install --system build twine
30+
uv pip list --system
3031
3132
- name: Set env
3233
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
@@ -82,9 +83,10 @@ jobs:
8283

8384
- name: Install Python dependencies
8485
run: |
85-
python -m pip install --upgrade pip setuptools wheel
86-
python -m pip install --upgrade '.[docs]'
87-
python -m pip list
86+
python -m pip install --upgrade uv
87+
uv pip install --system --upgrade pip setuptools wheel
88+
uv pip install --system --upgrade '.[docs]'
89+
uv pip list --system
8890
8991
- name: Build documentation
9092
run: |

0 commit comments

Comments
 (0)