Skip to content

Commit fc8e855

Browse files
committed
CI: Fix and improve pip/uv installation
1 parent 50bcf3c commit fc8e855

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
env:
3333
OS: ${{ matrix.os }}
3434
PYTHON: ${{ matrix.python-version }}
35+
UV_SYSTEM_PYTHON: true
3536

3637
services:
3738
cratedb:
@@ -44,21 +45,23 @@ jobs:
4445
- name: Acquire sources
4546
uses: actions/checkout@v4
4647

47-
- name: Install uv
48-
uses: astral-sh/setup-uv@v5
49-
50-
- name: Set up Python ${{ matrix.python-version }}
48+
- name: Set up Python
5149
uses: actions/setup-python@v5
5250
with:
5351
python-version: ${{ matrix.python-version }}
54-
architecture: x64
55-
cache: 'pip'
56-
cache-dependency-path: |
52+
53+
- name: Set up uv
54+
uses: astral-sh/setup-uv@v5
55+
with:
56+
cache-dependency-glob: |
5757
pyproject.toml
5858
requirements*.txt
59+
cache-suffix: ${{ matrix.python-version }}
60+
enable-cache: true
61+
version: "latest"
5962

6063
- name: Set up project requirements and tools
61-
run: uv pip install --system --requirement=requirements.txt --requirement=requirements-dev.txt
64+
run: uv pip install --requirement=requirements.txt --requirement=requirements-dev.txt
6265

6366
- name: Run linters and software tests
6467
run: poe check-cpython
@@ -94,6 +97,7 @@ jobs:
9497
env:
9598
OS: ${{ matrix.os }}
9699
MICROPYTHON: ${{ matrix.micropython-version }}
100+
UV_SYSTEM_PYTHON: true
97101

98102
services:
99103
cratedb:
@@ -113,7 +117,7 @@ jobs:
113117
- name: Install uv
114118
uses: astral-sh/setup-uv@v5
115119
- name: Set up project tools
116-
run: uv pip install --system poethepoet
120+
run: uv pip install poethepoet
117121

118122
# https://github.com/marketplace/actions/install-micropython
119123
- name: Set up MicroPython ${{ matrix.micropython-version }}

0 commit comments

Comments
 (0)