Skip to content

Commit 623a65d

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

File tree

2 files changed

+12
-19
lines changed

2 files changed

+12
-19
lines changed

.github/actions/build/action.yml

Lines changed: 8 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,26 @@
1+
---
12
name: build
23

34
runs:
45
using: composite
56

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

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
13+
- name: Format dependecies for not yet updated actions/setup-python
14+
run: uv export --extra=dev -o requirements.txt
15+
shell: bash
1916

2017
- name: Install python
2118
id: setup-python
2219
uses: actions/setup-python@v5
2320
with:
24-
cache: 'poetry'
21+
cache: 'pip'
2522
python-version-file: 'pyproject.toml'
2623

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-
3124
- name: Save python version to the env
3225
run: echo "python-version=${{ steps.setup-python.outputs.python-version }}" >> $GITHUB_ENV
3326
shell: bash

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
runs-on: ubuntu-24.04
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v4
15+
uses: actions/checkout@v5
1616

1717
- name: Build
1818
uses: ./.github/actions/build
@@ -60,7 +60,7 @@ jobs:
6060
- 6379:6379
6161

6262
steps:
63-
- uses: actions/checkout@v4
63+
- uses: actions/checkout@v5
6464

6565
- name: Build
6666
uses: ./.github/actions/build
@@ -94,7 +94,7 @@ jobs:
9494
runs-on: ubuntu-24.04
9595
steps:
9696
- name: Checkout
97-
uses: actions/checkout@v4
97+
uses: actions/checkout@v5
9898

9999
- name: Build
100100
uses: ./.github/actions/build
@@ -171,7 +171,7 @@ jobs:
171171
runs-on: ubuntu-24.04
172172
steps:
173173
- name: checkout
174-
uses: actions/checkout@v4
174+
uses: actions/checkout@v5
175175

176176
- name: Draft sentry release
177177
uses: getsentry/action-release@v1

0 commit comments

Comments
 (0)