Skip to content

Commit 692b504

Browse files
committed
CI: Use uv on GHA to speed up installing dependency packages
1 parent 1a58448 commit 692b504

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

.github/workflows/tests.yml

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,34 @@ jobs:
3333
OS_TYPE: ${{ matrix.os }}
3434
PYTHON_VERSION: ${{ matrix.python-version }}
3535
GRAFANA_VERSION: ${{ matrix.grafana-version }}
36+
UV_SYSTEM_PYTHON: true
3637

3738
name: Python ${{ matrix.python-version }}, Grafana ${{ matrix.grafana-version }}
3839
steps:
3940

4041
- name: Acquire sources
4142
uses: actions/checkout@v4
4243

43-
- name: Setup Python
44+
- name: Set up Python
4445
uses: actions/setup-python@v5
4546
with:
4647
python-version: ${{ matrix.python-version }}
4748
architecture: x64
4849
cache: 'pip'
4950
cache-dependency-path: 'setup.py'
5051

51-
- name: Setup Project
52+
- name: Set up uv
53+
uses: astral-sh/setup-uv@v4
54+
with:
55+
cache-dependency-glob: |
56+
setup.py
57+
cache-suffix: ${{ matrix.python-version }}
58+
enable-cache: true
59+
version: "latest"
60+
61+
- name: Set up project
5262
run: |
53-
pip install pip 'setuptools>=64' --upgrade
54-
pip install --editable='.[test]'
63+
uv pip install --editable='.[test]'
5564
5665
- name: Run tests
5766
run: |

0 commit comments

Comments
 (0)