Skip to content

Commit 396f626

Browse files
LKL-2373 Use setup-uv (#360)
2 parents a827ffa + 90a09b7 commit 396f626

File tree

4 files changed

+5
-19
lines changed

4 files changed

+5
-19
lines changed

.github/actions/build-hidp-docs/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,6 @@ runs:
1515
- name: Build documentation
1616
run: |
1717
echo ::group::Build documentation
18-
source ~/.venv/bin/activate
1918
make html
2019
echo ::endgroup::
2120
working-directory: './packages/hidp/docs'

.github/actions/python-qa/action.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ runs:
2222

2323
- name: Lint, check, test and build (if applicable)
2424
run: |
25-
source ~/.venv/bin/activate
2625
UV_DJANGO_VERSION=$(uv pip list | sed -nE 's/^django[[:space:]]+([0-9]+\.[0-9]+)\..*/\1/p')
2726
echo "Detected uv Django version: $UV_DJANGO_VERSION"
2827
echo "Expected Django version: $DJANGO_VERSION"

.github/actions/setup-python/action.yml

Lines changed: 4 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,12 @@ runs:
1313
using: composite
1414

1515
steps:
16-
- name: Setup Python
17-
uses: actions/setup-python@v5
16+
- name: Install uv
17+
uses: astral-sh/setup-uv@v6
1818
with:
1919
python-version: ${{ inputs.python-version }}
20+
activate-environment: true
21+
enable-cache: true
2022

2123
- name: Install system packages (gettext)
2224
run: |
@@ -26,14 +28,6 @@ runs:
2628
echo ::endgroup::
2729
shell: bash
2830

29-
- name: Install uv
30-
run: |
31-
echo ::group::Install uv
32-
python -m pip install --root-user-action=ignore -U uv
33-
echo ::endgroup::
34-
working-directory: ${{ inputs.working-directory }}
35-
shell: bash
36-
3731
- name: Set Django version
3832
run: |
3933
echo ::group::Set Django version environment variable
@@ -43,10 +37,6 @@ runs:
4337

4438
- name: Install dependencies
4539
run: |
46-
echo ::group::Create/activate virtualenv
47-
uv venv ~/.venv
48-
source ~/.venv/bin/activate
49-
echo ::endgroup::
5040
make install-pipeline
5141
working-directory: ${{ inputs.working-directory }}
5242
shell: bash

.github/workflows/test.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,11 @@ jobs:
1818
strategy:
1919
matrix:
2020
django-version: ['4.2', '5.2']
21-
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
21+
python-version: ['3.11', '3.12', '3.13']
2222
working-directory: ['./packages/hidp']
2323
exclude:
2424
- django-version: '4.2'
2525
python-version: '3.13'
26-
- django-version: '5.2'
27-
python-version: '3.9'
2826
include:
2927
- working-directory: './project'
3028
python-version: '3.12'

0 commit comments

Comments
 (0)