Skip to content

Commit e681796

Browse files
matthewfeickertBenGalewsky
authored andcommitted
ci: Use astral-sh/setup-uv action to setup uv
* Use https://github.com/astral-sh/setup-uv to install and setup uv. * Remove upgrade of setuptools as the build system uses hatchling. - Remove upgrade of wheel as the default version is fine.
1 parent 21aea65 commit e681796

File tree

4 files changed

+13
-11
lines changed

4 files changed

+13
-11
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ jobs:
2222

2323
- name: Lint with Flake8
2424
run: |
25-
python -m pip install --upgrade uv
26-
uv pip install --system --upgrade flake8
27-
flake8
25+
pipx run flake8
2826
2927
test:
3028
needs:
@@ -44,10 +42,11 @@ jobs:
4442
with:
4543
python-version: ${{ matrix.python-version }}
4644

45+
- name: Install uv
46+
uses: astral-sh/setup-uv@v3
47+
4748
- name: Install dependencies
4849
run: |
49-
python -m pip install --upgrade uv
50-
uv pip install --system --upgrade pip setuptools wheel
5150
uv pip install --system --upgrade '.[test,docs]'
5251
uv pip list --system
5352

.github/workflows/ci_production.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,11 @@ jobs:
2424
env:
2525
SERVICEX_YAML: ${{ secrets.SERVICEX_YAML }}
2626

27+
- name: Install uv
28+
uses: astral-sh/setup-uv@v3
29+
2730
- name: Install package
2831
run: |
29-
python -m pip install --upgrade uv
30-
uv pip install --system --upgrade pip setuptools wheel
3132
uv pip install --system --upgrade '.[test]'
3233
uv pip list --system
3334

.github/workflows/docs.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,11 @@ jobs:
3030
with:
3131
python-version: '3.12'
3232

33+
- name: Install uv
34+
uses: astral-sh/setup-uv@v3
35+
3336
- name: Install Python dependencies
3437
run: |
35-
python -m pip install uv
36-
uv pip install --system --upgrade pip wheel
3738
uv pip install --system --upgrade ".[docs]"
3839
uv pip list --system
3940

.github/workflows/pypi.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ jobs:
2222
with:
2323
python-version: '3.12'
2424

25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v3
27+
2528
- name: Install python-build and twine
2629
run: |
27-
python -m pip install --upgrade uv
28-
uv pip install --system --upgrade pip
2930
uv pip install --system build twine
3031
uv pip list --system
3132

0 commit comments

Comments
 (0)