Skip to content

Commit 9e58f5e

Browse files
authored
ci: upgrade to action-setup-venv 3.2.0 (#105357)
1 parent bf80a1a commit 9e58f5e

File tree

5 files changed

+21
-15
lines changed

5 files changed

+21
-15
lines changed

.github/workflows/backend.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,8 @@ jobs:
230230
with:
231231
version: '0.8.2'
232232

233-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
233+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
234234
with:
235-
python-version: 3.13.1
236235
cache-dependency-path: uv.lock
237236
install-cmd: echo
238237

@@ -378,9 +377,8 @@ jobs:
378377
# we just cache the venv-dir directly in action-setup-venv
379378
enable-cache: false
380379

381-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
380+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
382381
with:
383-
python-version: 3.13.1
384382
cache-dependency-path: uv.lock
385383
install-cmd: uv sync --frozen --active
386384

.github/workflows/development-environment.yml

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,8 @@ jobs:
4040
# we just cache the venv-dir directly in action-setup-venv
4141
enable-cache: false
4242

43-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
43+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
4444
with:
45-
python-version: 3.13.1
4645
cache-dependency-path: uv.lock
4746
install-cmd: uv sync --only-dev --frozen --active
4847

@@ -66,9 +65,8 @@ jobs:
6665
# we just cache the venv-dir directly in action-setup-venv
6766
enable-cache: false
6867

69-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
68+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
7069
with:
71-
python-version: 3.13.1
7270
cache-dependency-path: uv.lock
7371
# technically we can just use --only-dev but more cache is nice
7472
install-cmd: uv sync --frozen --active

.github/workflows/pre-commit.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,8 @@ jobs:
7777
# we just cache the venv-dir directly in action-setup-venv
7878
enable-cache: false
7979

80-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
80+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
8181
with:
82-
python-version: 3.13.1
8382
cache-dependency-path: uv.lock
8483
install-cmd: uv sync --only-dev --frozen --active
8584
- uses: actions/cache@1bd1e32a3bdc45362d1e726936510720a7c30a57 # v4.2.0

.github/workflows/react-to-product-owners-yml-changes.yml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,26 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
1313

14-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
14+
- uses: astral-sh/setup-uv@884ad927a57e558e7a70b92f2bccf9198a4be546 # v6
1515
with:
16-
python-version: 3.13.1
16+
version: '0.8.2'
17+
# we just cache the venv-dir directly in action-setup-venv
18+
enable-cache: false
19+
20+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
21+
with:
22+
cache-dependency-path: uv.lock
23+
install-cmd: echo
1724

1825
- name: React to product-owners.yml changes
1926
shell: bash
2027
env:
2128
GITHUB_TOKEN: ${{ secrets.BUMP_SENTRY_TOKEN }}
2229
COMMITTER_NAME: getsentry-bot
2330
COMMITTER_EMAIL: [email protected]
24-
run: ./bin/react-to-product-owners-yml-changes.sh
31+
run: |
32+
uv export --only-dev --no-hashes --no-annotate --no-header \
33+
| grep '^pyyaml' | sed -E 's/ ;.*//' \
34+
| xargs uv pip install --index-url 'https://pypi.devinfra.sentry.io/simple'
35+
36+
./bin/react-to-product-owners-yml-changes.sh

.github/workflows/self-hosted.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,8 @@ jobs:
4545
with:
4646
version: '0.8.2'
4747

48-
- uses: getsentry/action-setup-venv@3a832a9604b3e1a4202ae559248f26867b467cc7 # v2.1.1
48+
- uses: getsentry/action-setup-venv@5a80476d175edf56cb205b08bc58986fa99d1725 # v3.2.0
4949
with:
50-
python-version: 3.13.1
5150
cache-dependency-path: uv.lock
5251
# sentry.build.main has no external dependencies;
5352
# this is only to set up the venv with the correct

0 commit comments

Comments
 (0)