Skip to content

Commit 84b4d24

Browse files
authored
[MNT] move CI installs to uv (#661)
Moves the CI installs to `uv` - this has no impact on the packaging or UX, but speeds up the CI VM setup significantly. Also adds a display step for installed packages for potential diagnostics.
1 parent d84abc4 commit 84b4d24

File tree

2 files changed

+30
-6
lines changed

2 files changed

+30
-6
lines changed

.github/workflows/codecov.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,27 @@ jobs:
1919
steps:
2020
- uses: actions/checkout@v5
2121

22+
- name: Install uv
23+
uses: astral-sh/setup-uv@v7
24+
with:
25+
enable-cache: true
26+
2227
- name: Set up Python ${{ matrix.python-version }}
2328
uses: actions/setup-python@v6
2429
with:
2530
python-version: ${{ matrix.python-version }}
26-
cache: "pip"
31+
32+
- name: Display Python version
33+
run: python -c "import sys; print(sys.version)"
2734

2835
- name: Install dependencies
29-
run: |
30-
pip install ".[dev,all_extras]"
36+
shell: bash
37+
run: uv pip install ".[dev,all_extras]" --no-cache-dir
38+
env:
39+
UV_SYSTEM_PYTHON: 1
40+
41+
- name: Show dependencies
42+
run: uv pip list
3143

3244
- name: Generate coverage report
3345
run: |

.github/workflows/main.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,27 @@ jobs:
2828
steps:
2929
- uses: actions/checkout@v5
3030

31+
- name: Install uv
32+
uses: astral-sh/setup-uv@v7
33+
with:
34+
enable-cache: true
35+
3136
- name: Set up Python ${{ matrix.python-version }}
3237
uses: actions/setup-python@v6
3338
with:
3439
python-version: ${{ matrix.python-version }}
35-
cache: "pip"
40+
41+
- name: Display Python version
42+
run: python -c "import sys; print(sys.version)"
3643

3744
- name: Install dependencies
38-
run: |
39-
pip install ".[dev,all_extras]"
45+
shell: bash
46+
run: uv pip install ".[dev,all_extras]" --no-cache-dir
47+
env:
48+
UV_SYSTEM_PYTHON: 1
49+
50+
- name: Show dependencies
51+
run: uv pip list
4052

4153
- name: Test with pytest
4254
run: |

0 commit comments

Comments
 (0)