Skip to content

Commit 43fe4b6

Browse files
committed
refs actions/setup-python#818 -- updated CI to work with uv
1 parent 493ff76 commit 43fe4b6

File tree

1 file changed

+6
-15
lines changed

1 file changed

+6
-15
lines changed

.github/actions/build/action.yml

Lines changed: 6 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -4,30 +4,21 @@ runs:
44
using: composite
55

66
steps:
7-
- name: Load cached poetry installation
8-
id: cached-poetry
9-
uses: actions/cache@v4
7+
- name: Install uv
8+
uses: astral-sh/setup-uv@v6
109
with:
11-
path: ~/.local
12-
key: poetry-v2-${{ hashFiles('pyproject.toml') }}
10+
enable-cache: true
1311

14-
- name: Install poetry
15-
if: steps.cached-poetry.outputs.cache-hit != 'true'
16-
uses: snok/install-poetry@v1
17-
with:
18-
version: 2.1.1
12+
- name: Format dependecies for not yet updated actions/setup-python
13+
run: uv export --extra=dev -o requirements.txt
1914

2015
- name: Install python
2116
id: setup-python
2217
uses: actions/setup-python@v5
2318
with:
24-
cache: 'poetry'
19+
cache: 'pip'
2520
python-version-file: 'pyproject.toml'
2621

27-
- name: Make sure poetry lockfile is up to date
28-
run: poetry check --lock && echo Lockfile is ok, $(poetry --version)
29-
shell: bash
30-
3122
- name: Save python version to the env
3223
run: echo "python-version=${{ steps.setup-python.outputs.python-version }}" >> $GITHUB_ENV
3324
shell: bash

0 commit comments

Comments
 (0)