Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

fix(ci): install uv directly in check-migrations (#99380)

Raúl Negrón-Otero6fe2b622617d
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index 79aaf6272a7b..9076ada5207e 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -1334,9 +1334,15 @@ jobs:
with:
python-version: 3.13.13
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
+ # Direct install: The job later checks out the PR head, which may predate the local action, so its post step would fail.
- name: Install uv
id: setup-uv
- uses: ./.depot/actions/setup-uv
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ with:
+ version: '0.12.5'
+ enable-cache: true
+ cache-dependency-glob: uv.lock
+ save-cache: ${{ github.ref == 'refs/heads/master' }}
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
run: |
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index b09f88056495..4596517fca72 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -1558,9 +1558,15 @@ jobs:
python-version: 3.13.13
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
+ # Direct install: The job later checks out the PR head, which may predate the local action, so its post step would fail.
- name: Install uv
id: setup-uv
- uses: ./.github/actions/setup-uv
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ with:
+ version: '0.12.5'
+ enable-cache: true
+ cache-dependency-glob: uv.lock
+ save-cache: ${{ github.ref == 'refs/heads/master' }}
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'