Skip to content

Commit 692acbb

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

File tree

1 file changed

+12
-4
lines changed

1 file changed

+12
-4
lines changed

.github/workflows/tests.yml

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,25 +33,33 @@ 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+
enable-cache: true
56+
cache-dependency-glob: "requirements*.txt"
57+
cache-suffix: ${{ matrix.python-version }}
58+
version: "latest"
59+
60+
- name: Set up project
5261
run: |
53-
pip install pip 'setuptools>=64' --upgrade
54-
pip install --editable='.[test]'
62+
uv pip install --editable='.[test]'
5563
5664
- name: Run tests
5765
run: |

0 commit comments

Comments
 (0)