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.

chore(ci): adopt shared uv setup action (#96782)

Raúl Negrón-Otero57996a8082f6
diff --git a/.depot/workflows/ci-backend-update-test-timing.yml b/.depot/workflows/ci-backend-update-test-timing.yml
index df868de18ea1..4884ad3195f2 100644
--- a/.depot/workflows/ci-backend-update-test-timing.yml
+++ b/.depot/workflows/ci-backend-update-test-timing.yml
@@ -26,9 +26,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.depot/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Find newest Backend CI run with timing artifacts
id: find-backend-run
diff --git a/.depot/workflows/ci-backend.yml b/.depot/workflows/ci-backend.yml
index cd13ceb820f5..91267d87a966 100644
--- a/.depot/workflows/ci-backend.yml
+++ b/.depot/workflows/ci-backend.yml
@@ -10,9 +10,9 @@
# Intentional deltas vs canonical (everything else is kept apples-to-apples):
# - runs-on: depot-* labels instead of ubuntu-latest
# - action paths: ./.depot/actions/... instead of ./.github/actions/... (pnpm-install,
-# setup-sqlx-cli, setup-python-cached, and paths-filter mirror the canonical
-# composites; any deltas are documented in each mirror's header). setup-turbo has no
-# mirror because there is nothing Depot needs to strip from it.
+# setup-sqlx-cli, setup-python-cached, setup-uv, and paths-filter mirror the canonical
+# composites; any deltas are documented in each mirror's header). Keep the local
+# action mirrors available in .depot/actions so Depot can resolve their manifests.
# - permissions: pull-requests:read (no comment/auto-commit side effects)
# - Stripped side effects: artifact uploads, CI report section posters (canonical
# additionally skips these on trunk-merge/** branches to save GITHUB_TOKEN budget;
@@ -408,6 +408,7 @@ jobs:
- 'products/*/turbo.json'
# Make sure we run if someone is explicitly changing the workflow
- .depot/workflows/ci-backend.yml
+ - .depot/actions/setup-uv/**
- .github/clickhouse-versions.json
# We use docker compose for tests, make sure we rerun on
# changes to docker-compose.dev.yml e.g. dependency
@@ -458,6 +459,7 @@ jobs:
- 'products/*/manifest.tsx'
- rust/feature-flags/src/properties/property_models.rs
- .depot/workflows/ci-backend.yml
+ - .depot/actions/setup-uv/**
- .github/clickhouse-versions.json
- docker-compose.dev.yml
- docker-compose.profiles.yml
@@ -726,10 +728,10 @@ jobs:
# --no-project` for the dependent cascade; the script pins tach, so no
# Python project sync is needed. A missing uv widens the cascade to
# every product rather than failing the job.
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- continue-on-error: true
+ - uses: ./.depot/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ continue-on-error: true
- name: Restore test durations from cache
# Restore fresh timings so shard counts match GitHub Actions; miss falls back to committed.
uses: actions/cache/restore@cdf6c1fa76f9f475f3d7449005a359c84ca0f306 # v5.0.3
@@ -781,9 +783,9 @@ jobs:
# selector failure does, not fail the job that gates every test job.
continue-on-error: true
if: env.SELECTION_APPLIES == 'true' && needs.changes.outputs.legacy == 'true' && vars.DISABLE_BACKEND_TEST_SELECTION != 'true'
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.depot/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Run the backend test selector
id: select
@@ -941,12 +943,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.depot/actions/setup-uv
- name: Install SAML dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
run: sudo rm -f /etc/apt/sources.list.d/*twingate* && sudo apt-get update && sudo apt-get install -y libxml2-dev libxmlsec1-dev libxmlsec1-openssl
@@ -1169,9 +1166,9 @@ jobs:
python-version: 3.13.13
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.depot/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Bootstrap scaffold product
@@ -1253,9 +1250,9 @@ jobs:
python-version: 3.13.13
token: ${{ steps.app-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.depot/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
- name: Validate changed product.yaml owners
@@ -1336,12 +1333,7 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.depot/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
run: |
@@ -1597,6 +1589,7 @@ jobs:
with:
python-version: 3.13.13
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
+ # Direct install: Generated changes target the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
@@ -2073,11 +2066,12 @@ jobs:
with:
path: ${{ runner.tool_cache }}/Python/${{ matrix.python-version }}
key: python-toolcache-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
+ # Direct install: Tests run the explicit PR head, which may predate the local action.
- name: Install uv
id: setup-uv-tests
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/build-deltalite.yml b/.github/workflows/build-deltalite.yml
index 6ea24a8f989a..8a698151baa6 100644
--- a/.github/workflows/build-deltalite.yml
+++ b/.github/workflows/build-deltalite.yml
@@ -222,9 +222,10 @@ jobs:
with:
python-version: 3.13.13
+ # Direct install: Publishing commits to the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: '0.11.28'
enable-cache: true
diff --git a/.github/workflows/build-hogql-parser-npm.yml b/.github/workflows/build-hogql-parser-npm.yml
index 50bb73702845..b0e49c5aa756 100644
--- a/.github/workflows/build-hogql-parser-npm.yml
+++ b/.github/workflows/build-hogql-parser-npm.yml
@@ -157,11 +157,12 @@ jobs:
with:
node-version-file: .nvmrc
+ # Direct install: Publishing commits to the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
- name: Update @posthog/hogql-parser in frontend
shell: bash
diff --git a/.github/workflows/build-hogql-parser-rs.yml b/.github/workflows/build-hogql-parser-rs.yml
index 1b2ffcff7103..1f4086363d44 100644
--- a/.github/workflows/build-hogql-parser-rs.yml
+++ b/.github/workflows/build-hogql-parser-rs.yml
@@ -208,9 +208,10 @@ jobs:
with:
python-version: 3.13.13
+ # Direct install: Publishing commits to the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@eac588ad8def6316056a12d4907a9d4d84ff7a3b # v7.3.0
+ uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
version: '0.11.28'
enable-cache: true
diff --git a/.github/workflows/build-hogql-parser.yml b/.github/workflows/build-hogql-parser.yml
index 3a956caf13f4..168c78d21da4 100644
--- a/.github/workflows/build-hogql-parser.yml
+++ b/.github/workflows/build-hogql-parser.yml
@@ -198,11 +198,12 @@ jobs:
with:
python-version: 3.13.13
+ # Direct install: Publishing commits to the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/cd-sandbox-base-image.yml b/.github/workflows/cd-sandbox-base-image.yml
index 0338ac97440b..6c00f0b6769f 100644
--- a/.github/workflows/cd-sandbox-base-image.yml
+++ b/.github/workflows/cd-sandbox-base-image.yml
@@ -13,6 +13,7 @@ on:
pull_request:
paths:
- '.github/workflows/cd-sandbox-base-image.yml'
+ - '.github/actions/setup-uv/**'
- 'products/tasks/backend/sandbox/images/**'
- 'products/desktop/packages/agent-shadow/**'
- 'products/posthog_ai/scripts/**'
@@ -63,6 +64,7 @@ jobs:
filters: |
sandbox_image:
- '.github/workflows/cd-sandbox-base-image.yml'
+ - '.github/actions/setup-uv/**'
- 'products/tasks/backend/sandbox/images/**'
- 'products/desktop/packages/agent-shadow/**'
- 'products/*/skills/**'
@@ -181,11 +183,7 @@ jobs:
token: ${{ github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28'
- enable-cache: true
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
diff --git a/.github/workflows/cd-tasks-golden-snapshot.yml b/.github/workflows/cd-tasks-golden-snapshot.yml
index 05fbae3b84dd..2dd2b25885ad 100644
--- a/.github/workflows/cd-tasks-golden-snapshot.yml
+++ b/.github/workflows/cd-tasks-golden-snapshot.yml
@@ -234,6 +234,7 @@ jobs:
python-version-file: 'pyproject.toml'
token: ${{ github.token }}
+ # Direct install: The requested historical source revision may not contain the local action.
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
diff --git a/.github/workflows/ci-agent-skills.yml b/.github/workflows/ci-agent-skills.yml
index bc372cf7f1e2..8b52450e2202 100644
--- a/.github/workflows/ci-agent-skills.yml
+++ b/.github/workflows/ci-agent-skills.yml
@@ -47,6 +47,7 @@ jobs:
- 'products/*/backend/max_tools.py'
- 'products/posthog_ai/**'
- '.github/workflows/ci-agent-skills.yml'
+ - '.github/actions/setup-uv/**'
- 'services/mcp/schema/**'
# check-skills zips products/*/skills/* via `hogli build:skills`
# (see build.py's affected-path map), so posthog_ai's frontend
@@ -180,12 +181,7 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
diff --git a/.github/workflows/ci-ai.yml b/.github/workflows/ci-ai.yml
index 1c9082d761fc..6ab605ccb543 100644
--- a/.github/workflows/ci-ai.yml
+++ b/.github/workflows/ci-ai.yml
@@ -97,10 +97,11 @@ jobs:
with:
python-version-file: 'pyproject.toml'
+ # Direct install: Evaluations run the explicit PR head, which may predate the local action.
- name: Install uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-backend-update-test-timing.yml b/.github/workflows/ci-backend-update-test-timing.yml
index ccd93cdf03da..7de9d23d7dfd 100644
--- a/.github/workflows/ci-backend-update-test-timing.yml
+++ b/.github/workflows/ci-backend-update-test-timing.yml
@@ -46,9 +46,9 @@ jobs:
token: ${{ steps.app-token.outputs.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Find Backend CI run to use
id: find-backend-run
diff --git a/.github/workflows/ci-backend.yml b/.github/workflows/ci-backend.yml
index 147f4fc10943..7396337b22f9 100644
--- a/.github/workflows/ci-backend.yml
+++ b/.github/workflows/ci-backend.yml
@@ -245,6 +245,7 @@ jobs:
- 'products/*/turbo.json'
# Make sure we run if someone is explicitly changing the workflow
- .github/workflows/ci-backend.yml
+ - .github/actions/setup-uv/**
- .github/clickhouse-versions.json
# We use docker compose for tests, make sure we rerun on
# changes to docker-compose.dev.yml e.g. dependency
@@ -295,6 +296,7 @@ jobs:
- 'products/*/manifest.tsx'
- rust/feature-flags/src/properties/property_models.rs
- .github/workflows/ci-backend.yml
+ - .github/actions/setup-uv/**
- .github/clickhouse-versions.json
- docker-compose.dev.yml
- docker-compose.profiles.yml
@@ -582,10 +584,10 @@ jobs:
# --no-project` for the dependent cascade; the script pins tach, so no
# Python project sync is needed. A missing uv widens the cascade to
# every product rather than failing the job.
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- continue-on-error: true
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ continue-on-error: true
- name: Restore test durations from cache
# Shard counts are derived from .test_durations (Amdahl). Restore the newest
@@ -667,9 +669,9 @@ jobs:
# selector failure does, not fail the job that gates every test job.
continue-on-error: true
if: env.SELECTION_APPLIES == 'true' && needs.changes.outputs.legacy == 'true' && vars.DISABLE_BACKEND_TEST_SELECTION != 'true'
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Run the backend test selector
id: select
@@ -861,12 +863,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
@@ -1287,9 +1284,9 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
@@ -1446,9 +1443,9 @@ jobs:
token: ${{ steps.app-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
@@ -1559,12 +1556,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
@@ -2310,11 +2302,12 @@ jobs:
path: ${{ runner.tool_cache }}/Python/3.13.13
key: python-toolcache-${{ runner.os }}-${{ runner.arch }}-3.13.13
+ # Direct install: Generated changes target the PR head, which may predate the local action.
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -2950,11 +2943,12 @@ jobs:
path: ${{ runner.tool_cache }}/Python/${{ matrix.python-version }}
key: python-toolcache-${{ runner.os }}-${{ runner.arch }}-${{ matrix.python-version }}
+ # Direct install: Tests run the explicit PR head, which may predate the local action.
- name: Install uv
id: setup-uv-tests
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
@@ -4063,9 +4057,9 @@ jobs:
filter: blob:none
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Download JUnit artifacts
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7.0.0
@@ -4262,10 +4256,11 @@ jobs:
echo "Trusted timing reporter is not available on the checked-out ref for attempt $GITHUB_RUN_ATTEMPT; skipping emit."
fi
echo "available=$available" >> "$GITHUB_OUTPUT"
+ # Direct install: The trusted PR base used for reporting may predate the local action.
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
if: steps.timing-reporter.outputs.available == 'true'
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
- name: Download junit artifacts
if: steps.timing-reporter.outputs.available == 'true'
uses: actions/download-artifact@634f93cb2916e3fdff6788551b99b062d0335ce0 # v6.0.0
@@ -4343,10 +4338,10 @@ jobs:
with:
path: ./core-artifacts
pattern: coverage-core-*
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- if: steps.reporter.outputs.available == 'true'
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ if: steps.reporter.outputs.available == 'true'
- name: Build coverage report
# diff-cover is declared inline (PEP 723) in coverage_report.py; uv provisions it.
if: steps.reporter.outputs.available == 'true'
diff --git a/.github/workflows/ci-clickhouse-multinode-migrations.yml b/.github/workflows/ci-clickhouse-multinode-migrations.yml
index dfb79cd75011..f0bfee96d80a 100644
--- a/.github/workflows/ci-clickhouse-multinode-migrations.yml
+++ b/.github/workflows/ci-clickhouse-multinode-migrations.yml
@@ -15,6 +15,7 @@ on:
- 'tools/infra-scripts/clickhouse-multinode/**'
- 'posthog/clickhouse/hcl/**'
- '.github/workflows/ci-clickhouse-multinode-migrations.yml'
+ - '.github/actions/setup-uv/**'
workflow_dispatch:
concurrency:
@@ -76,11 +77,7 @@ jobs:
python-version: 3.13.13
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28'
- enable-cache: true
- cache-dependency-glob: uv.lock
+ uses: ./.github/actions/setup-uv
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
diff --git a/.github/workflows/ci-dagster.yml b/.github/workflows/ci-dagster.yml
index 09e0cc352e2c..315a97a1f9fe 100644
--- a/.github/workflows/ci-dagster.yml
+++ b/.github/workflows/ci-dagster.yml
@@ -60,9 +60,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
clean: false
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- run: uv run .github/scripts/check-dagster-paths.py
# Job to decide if we should run dagster ci
@@ -203,6 +203,7 @@ jobs:
- 'products/web_analytics/backend/**/*.py'
# Make sure we run if someone is explicitly change the workflow
- .github/workflows/ci-dagster.yml
+ - .github/actions/setup-uv/**
# The test selector guards itself: selector changes run the
# suite (full mode), which executes its unit tests first
- tools/dagster_test_selection.py
@@ -243,6 +244,7 @@ jobs:
- 'posthog/dags/**'
- 'products/*/dags/**'
- .github/workflows/ci-dagster.yml
+ - .github/actions/setup-uv/**
- tools/dagster_test_selection.py
- tools/test_dagster_test_selection.py
@@ -371,9 +373,9 @@ jobs:
filter: blob:none
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Download the last published durations
# The selector's full-run cutoff and shard sizing read .test_durations,
@@ -528,12 +530,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
diff --git a/.github/workflows/ci-deltalite-python.yml b/.github/workflows/ci-deltalite-python.yml
index e7c5e8a0ef34..22241f8c8445 100644
--- a/.github/workflows/ci-deltalite-python.yml
+++ b/.github/workflows/ci-deltalite-python.yml
@@ -15,6 +15,7 @@ on:
paths:
- rust/deltalite/**
- .github/workflows/ci-deltalite-python.yml
+ - .github/actions/setup-uv/**
# The parity suite runs against the repo's pinned deltalake/pyarrow/duckdb, so
# re-run it whenever those pins move.
- pyproject.toml
@@ -25,6 +26,7 @@ on:
paths:
- rust/deltalite/**
- .github/workflows/ci-deltalite-python.yml
+ - .github/actions/setup-uv/**
- pyproject.toml
- uv.lock
@@ -45,6 +47,7 @@ jobs:
with:
sparse-checkout: |
rust/
+ .github/actions/setup-uv
pyproject.toml
sparse-checkout-cone-mode: false
clean: false
@@ -69,9 +72,9 @@ jobs:
save-if: ${{ github.ref == 'refs/heads/master' }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Create venv with test dependencies
# Versions are read straight from the repo's pyproject.toml so parity is
diff --git a/.github/workflows/ci-e2e-playwright.yml b/.github/workflows/ci-e2e-playwright.yml
index b2f35af19386..9d85e6725f5a 100644
--- a/.github/workflows/ci-e2e-playwright.yml
+++ b/.github/workflows/ci-e2e-playwright.yml
@@ -590,11 +590,12 @@ jobs:
python-version: 3.13.13
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
+ # Direct install: Tests run the explicit PR head, which may predate the local action.
- name: Install uv
id: setup-uv
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ version: '0.11.28'
enable-cache: true
cache-dependency-glob: uv.lock
save-cache: ${{ github.ref == 'refs/heads/master' }}
diff --git a/.github/workflows/ci-frontend.yml b/.github/workflows/ci-frontend.yml
index 8fc151fe3ca5..08533bb05a70 100644
--- a/.github/workflows/ci-frontend.yml
+++ b/.github/workflows/ci-frontend.yml
@@ -1070,6 +1070,7 @@ jobs:
echo "Trusted Jest reporter is not available on the checked-out ref for attempt $GITHUB_RUN_ATTEMPT; skipping emit."
fi
echo "available=$available" >> "$GITHUB_OUTPUT"
+ # Direct install: The trusted PR base used for reporting may predate the local action.
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
if: steps.test-reporter.outputs.available == 'true'
with:
diff --git a/.github/workflows/ci-hobby.yml b/.github/workflows/ci-hobby.yml
index ad85e4ff9963..327282496e6d 100644
--- a/.github/workflows/ci-hobby.yml
+++ b/.github/workflows/ci-hobby.yml
@@ -83,6 +83,7 @@ jobs:
- 'docker/**'
- uv.lock
- .github/workflows/ci-hobby.yml
+ - .github/actions/setup-uv/**
installer:
- 'bin/hobby-installer/**'
@@ -251,9 +252,9 @@ jobs:
[ -d "data" ] && docker run --rm -v "$(pwd)/data:/data" alpine sh -c "rm -rf /data/seaweedfs /data/minio" || true
continue-on-error: true
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Set environment variables from previous job
run: |
echo "PREVIEW_MODE=${{ github.event_name == 'pull_request' && needs.wait-for-docker-image.outputs.preview-mode || 'false' }}" >> $GITHUB_ENV
diff --git a/.github/workflows/ci-hog.yml b/.github/workflows/ci-hog.yml
index f5e5669b9e50..18ba4cd3eb3b 100644
--- a/.github/workflows/ci-hog.yml
+++ b/.github/workflows/ci-hog.yml
@@ -64,6 +64,7 @@ jobs:
- requirements.txt
- requirements-dev.txt
- .github/workflows/ci-hog.yml
+ - .github/actions/setup-uv/**
hog-tests:
needs: changes
@@ -99,12 +100,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
@@ -211,12 +207,7 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
id: setup-uv-hogql-python
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv-hogql-python.outputs.cache-hit != 'true'
run: |
diff --git a/.github/workflows/ci-lint-workflows.yml b/.github/workflows/ci-lint-workflows.yml
index 1792199fdfd1..bf515357dcf5 100644
--- a/.github/workflows/ci-lint-workflows.yml
+++ b/.github/workflows/ci-lint-workflows.yml
@@ -29,12 +29,7 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
diff --git a/.github/workflows/ci-llm-gateway.yml b/.github/workflows/ci-llm-gateway.yml
index 3ca9b8113004..c2b5bb69a415 100644
--- a/.github/workflows/ci-llm-gateway.yml
+++ b/.github/workflows/ci-llm-gateway.yml
@@ -50,6 +50,7 @@ jobs:
llm_gateway:
- 'services/llm-gateway/**'
- '.github/workflows/ci-llm-gateway.yml'
+ - '.github/actions/setup-uv/**'
llm-gateway:
name: LLM Gateway Tests
@@ -71,9 +72,9 @@ jobs:
token: ${{ github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Install dependencies
run: uv sync --frozen --dev
diff --git a/.github/workflows/ci-master-run-traces.yml b/.github/workflows/ci-master-run-traces.yml
index 8007d1c79e77..c2805ec095ce 100644
--- a/.github/workflows/ci-master-run-traces.yml
+++ b/.github/workflows/ci-master-run-traces.yml
@@ -57,6 +57,7 @@ jobs:
with:
sparse-checkout: |
.github/scripts/report_workflow_run_traces.py
+ .github/actions/setup-uv
sparse-checkout-cone-mode: false
# Reads job durations from the Actions API — the same purpose as
@@ -72,9 +73,9 @@ jobs:
private-key: ${{ secrets.GH_APP_TELEMETRY_PRIVATE_KEY }}
skip-token-revoke: true
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
# Deliberately not continue-on-error: a red tick is what holds the watermark
# at the last clean one, so the next tick re-covers the window. This workflow
diff --git a/.github/workflows/ci-mcp-ui-apps.yml b/.github/workflows/ci-mcp-ui-apps.yml
index 690dc49e57f1..389492c26ece 100644
--- a/.github/workflows/ci-mcp-ui-apps.yml
+++ b/.github/workflows/ci-mcp-ui-apps.yml
@@ -56,6 +56,7 @@ jobs:
- 'products/product_analytics/frontend/insights/**'
- 'products/*/frontend/generated/**'
- '.github/workflows/ci-mcp-ui-apps.yml'
+ - '.github/actions/setup-uv/**'
build-and-report:
name: Build and validate UI Apps
@@ -68,12 +69,7 @@ jobs:
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv # Needed for formatting generated code and running scripts
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Mint setup-action GitHub token
id: setup-gh-token
diff --git a/.github/workflows/ci-mcp.yml b/.github/workflows/ci-mcp.yml
index 537a5ba1c562..6f99a7519f6e 100644
--- a/.github/workflows/ci-mcp.yml
+++ b/.github/workflows/ci-mcp.yml
@@ -134,6 +134,7 @@ jobs:
- 'tools/hogli-commands/hogli_commands/hints.py'
# CI config
- '.github/workflows/ci-mcp.yml'
+ - '.github/actions/setup-uv/**'
- '.github/workflows/mcp-publish.yml'
# The integration tests drive a running Django server over HTTP and
# never import pytest modules, so exclude them. Narrow on purpose:
@@ -204,12 +205,7 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
@@ -426,12 +422,7 @@ jobs:
token: ${{ steps.setup-gh-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
shell: bash
diff --git a/.github/workflows/ci-nodejs.yml b/.github/workflows/ci-nodejs.yml
index 225a72297337..ca3a35cff390 100644
--- a/.github/workflows/ci-nodejs.yml
+++ b/.github/workflows/ci-nodejs.yml
@@ -80,6 +80,7 @@ jobs:
filters: |
nodejs:
- .github/workflows/ci-nodejs.yml
+ - .github/actions/setup-uv/**
# The report job executes these after Jest uploads its JUnit artifacts.
- '.github/actions/report-jest-timings/**'
- '.github/scripts/report_test_timings.py'
@@ -133,6 +134,7 @@ jobs:
- 'rust/**'
- 'proto/**'
- '.github/workflows/ci-nodejs.yml'
+ - '.github/actions/setup-uv/**'
- name: Install rust for affected-crate detection
# Not needed on schedule either: the decision step below already returns
@@ -463,12 +465,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
@@ -786,12 +783,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install rust
uses: dtolnay/rust-toolchain@3c5f7ea28cd621ae0bf5283f0e981fb97b8a7af9
@@ -971,6 +963,7 @@ jobs:
echo "Trusted timings reporter is not available on the checked-out ref; skipping speed report."
fi
echo "available=$available" >> "$GITHUB_OUTPUT"
+ # Direct install: Timing updates target the PR head, which may predate the local action.
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
if: steps.test-reporter.outputs.available == 'true'
with:
diff --git a/.github/workflows/ci-owners-live-lint.yml b/.github/workflows/ci-owners-live-lint.yml
index a5f063cb0a3a..52a0c132ad07 100644
--- a/.github/workflows/ci-owners-live-lint.yml
+++ b/.github/workflows/ci-owners-live-lint.yml
@@ -56,9 +56,9 @@ jobs:
token: ${{ steps.app-token.outputs.token || github.token }}
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Install Python dependencies
run: UV_PROJECT_ENVIRONMENT=$pythonLocation uv sync --frozen --dev
diff --git a/.github/workflows/ci-replay-vision-evals.yml b/.github/workflows/ci-replay-vision-evals.yml
index 0b3de057bab3..218d5e8b3f7f 100644
--- a/.github/workflows/ci-replay-vision-evals.yml
+++ b/.github/workflows/ci-replay-vision-evals.yml
@@ -93,11 +93,8 @@ jobs:
- name: Install uv
if: steps.gate.outputs.enabled == 'true'
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
save-cache: false
- name: Install python dependencies
diff --git a/.github/workflows/ci-rust-flags-integration.yml b/.github/workflows/ci-rust-flags-integration.yml
index 1f28fdf1134b..efa53b3eee54 100644
--- a/.github/workflows/ci-rust-flags-integration.yml
+++ b/.github/workflows/ci-rust-flags-integration.yml
@@ -14,6 +14,7 @@ on:
- 'posthog/models/cohort/**'
- 'posthog/models/group_type_mapping.py'
- '.github/workflows/ci-rust-flags-integration.yml'
+ - '.github/actions/setup-uv/**'
push:
branches:
- master
@@ -28,6 +29,7 @@ on:
- 'posthog/models/cohort/**'
- 'posthog/models/group_type_mapping.py'
- '.github/workflows/ci-rust-flags-integration.yml'
+ - '.github/actions/setup-uv/**'
permissions:
contents: read
@@ -93,10 +95,7 @@ jobs:
python-version: '3.13.13'
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28'
- enable-cache: true
+ uses: ./.github/actions/setup-uv
- name: Install system dependencies
# protobuf-compiler (protoc) is needed to build personhog-router: its
diff --git a/.github/workflows/ci-rust.yml b/.github/workflows/ci-rust.yml
index 25a966934e72..5cdfaf0b2ef7 100644
--- a/.github/workflows/ci-rust.yml
+++ b/.github/workflows/ci-rust.yml
@@ -53,6 +53,7 @@ jobs:
- 'rust/**'
- 'proto/**'
- '.github/workflows/ci-rust.yml'
+ - '.github/actions/setup-uv/**'
- '.github/workflows/rust.yml'
- '.github/workflows/rust-docker-build.yml'
- '.github/actions/setup-protoc/**'
@@ -408,12 +409,7 @@ jobs:
- name: Install uv
id: setup-uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- enable-cache: true
- cache-dependency-glob: uv.lock
- save-cache: ${{ github.ref == 'refs/heads/master' }}
+ uses: ./.github/actions/setup-uv
- name: Install SAML (python3-saml) dependencies
if: steps.setup-uv.outputs.cache-hit != 'true'
diff --git a/.github/workflows/ci-scripts.yml b/.github/workflows/ci-scripts.yml
index 744b0348d6db..85a4eebc37a7 100644
--- a/.github/workflows/ci-scripts.yml
+++ b/.github/workflows/ci-scripts.yml
@@ -9,6 +9,7 @@ on:
- .github/scripts/**
- .github/auto-assign-labels.json
- .github/workflows/ci-scripts.yml
+ - .github/actions/setup-uv/**
# trunk-impacted-targets.test.js reads proto/ and fails on a tree the
# table does not declare, so adding one has to run these tests.
- proto/**
@@ -77,9 +78,9 @@ jobs:
node-version-file: .nvmrc
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
# The preinstalled python3 runs these standalone tests, so no
# setup-python step. defusedxml + opentelemetry + tools/owners are
diff --git a/.github/workflows/container-images-cd.yml b/.github/workflows/container-images-cd.yml
index e99109ef4026..e6404be8473f 100644
--- a/.github/workflows/container-images-cd.yml
+++ b/.github/workflows/container-images-cd.yml
@@ -589,9 +589,9 @@ jobs:
fi
- name: Install uv for dependency analysis
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Check for Python dependency changes that affect analytics platform temporal worker
id: check_python_changes_analytics_platform_temporal_worker
diff --git a/.github/workflows/hogbox-preview-cleanup.yml b/.github/workflows/hogbox-preview-cleanup.yml
index f1aa53b398ab..a6ec3397773f 100644
--- a/.github/workflows/hogbox-preview-cleanup.yml
+++ b/.github/workflows/hogbox-preview-cleanup.yml
@@ -68,9 +68,9 @@ jobs:
echo "HOG_TOKEN=$token" >> "$GITHUB_ENV"
# uv (repo convention): --no-project skips the monorepo sync, --with
# pins the first-party SDK (exempted from the 7-day soak in [tool.uv]).
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Reap previews for closed PRs
working-directory: tools/hogbox-preview
env:
diff --git a/.github/workflows/hogbox-preview-env.yml b/.github/workflows/hogbox-preview-env.yml
index e3ff75b01a7b..245837396a01 100644
--- a/.github/workflows/hogbox-preview-env.yml
+++ b/.github/workflows/hogbox-preview-env.yml
@@ -523,12 +523,12 @@ jobs:
# --no-project skips the posthog monorepo (don't sync it); --with pins
# the SDK into an ephemeral env. posthog-hogland is first-party and
# exempted from the 7-day soak in [tool.uv].
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ - uses: ./.github/actions/setup-uv
+ with:
+ enable-cache: false
id: uv
if: steps.token.outcome == 'success'
continue-on-error: true
- with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
- name: Bring up preview
id: build
@@ -803,10 +803,10 @@ jobs:
[ -n "$token" ] && [ "$token" != "null" ] || { echo "::error::OIDC mint failed after 3 attempts"; exit 1; }
echo "::add-mask::$token"
echo "HOG_TOKEN=$token" >> "$GITHUB_ENV"
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- continue-on-error: true
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ continue-on-error: true
- name: Destroy preview box + pen
continue-on-error: true
working-directory: tools/hogbox-preview
diff --git a/.github/workflows/pr-autoresolve-conflicts.yml b/.github/workflows/pr-autoresolve-conflicts.yml
index d1e340fe0271..7aa33f7ab3e6 100644
--- a/.github/workflows/pr-autoresolve-conflicts.yml
+++ b/.github/workflows/pr-autoresolve-conflicts.yml
@@ -265,6 +265,7 @@ jobs:
bin/ci-wait-for-docker launch --background --down db clickhouse
# --- Environment: uv + pnpm for classic resolution; python only for the heavy path ---
+ # Direct install: Conflicting branches cannot incorporate master to obtain the local action.
- name: Set up uv
if: steps.merge.outputs.skip != 'true' && steps.merge.outputs.graphite != 'true'
uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
diff --git a/.github/workflows/pr-cleanup.yml b/.github/workflows/pr-cleanup.yml
index e3aeb5c99410..431219339b39 100644
--- a/.github/workflows/pr-cleanup.yml
+++ b/.github/workflows/pr-cleanup.yml
@@ -44,9 +44,9 @@ jobs:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Cleanup specific PR droplet
if: inputs.pr_number != ''
diff --git a/.github/workflows/pr-closed.yml b/.github/workflows/pr-closed.yml
index 2b600b2dda3d..0288ef1158a3 100644
--- a/.github/workflows/pr-closed.yml
+++ b/.github/workflows/pr-closed.yml
@@ -70,14 +70,17 @@ jobs:
# so master's copy is correct and removes that exec vector.
#
# The teardown imports only tools/hogbox-preview and the external
- # posthog-hogland SDK, so a sparse blobless checkout of that one
- # directory replaces a full clone of the monorepo.
+ # posthog-hogland SDK, so a sparse blobless checkout of that
+ # directory replaces a full clone of the monorepo. The checkout
+ # also includes .github/actions/setup-uv because a step can only
+ # use a local action that exists in the workspace.
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
if: steps.gate.outputs.had_preview == 'true'
with:
ref: ${{ github.event.repository.default_branch }}
sparse-checkout: |
tools/hogbox-preview/
+ .github/actions/setup-uv/
sparse-checkout-cone-mode: false
filter: blob:none
- name: Connect to Tailscale (tag:hogland-ci)
@@ -109,10 +112,10 @@ jobs:
echo "HOG_TOKEN=$token" >> "$GITHUB_ENV"
# uv (repo convention): --no-project skips the monorepo sync, --with
# pins the first-party SDK (exempted from the 7-day soak in [tool.uv]).
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- if: steps.gate.outputs.had_preview == 'true'
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ if: steps.gate.outputs.had_preview == 'true'
- name: Destroy preview box + pen
if: steps.gate.outputs.had_preview == 'true'
working-directory: tools/hogbox-preview
diff --git a/.github/workflows/publish-hogli.yml b/.github/workflows/publish-hogli.yml
index 11e9079aabfc..baeb85892123 100644
--- a/.github/workflows/publish-hogli.yml
+++ b/.github/workflows/publish-hogli.yml
@@ -35,9 +35,9 @@ jobs:
with:
python-version: '3.13.13'
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28'
+ enable-cache: false
- name: Verify tag matches package version
shell: bash
diff --git a/.github/workflows/test-quarantine.yml b/.github/workflows/test-quarantine.yml
index e7346f119c5b..0b13511e731a 100644
--- a/.github/workflows/test-quarantine.yml
+++ b/.github/workflows/test-quarantine.yml
@@ -6,6 +6,7 @@ on:
- .test_quarantine.json
- tools/hogli-commands/hogli_commands/quarantine/**
- .github/workflows/test-quarantine.yml
+ - .github/actions/setup-uv/**
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.ref }}
@@ -27,9 +28,9 @@ jobs:
python-version-file: 'pyproject.toml'
- name: Install uv
- uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
+ uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
- name: Check quarantine file
# Same as `hogli test:quarantine check`, without installing the dev
diff --git a/.github/workflows/trunk-impacted-targets.yml b/.github/workflows/trunk-impacted-targets.yml
index 4c68873f0029..0ee86f30ee0a 100644
--- a/.github/workflows/trunk-impacted-targets.yml
+++ b/.github/workflows/trunk-impacted-targets.yml
@@ -84,10 +84,10 @@ jobs:
# --no-project` to find a changed product's importers; the script pins
# tach, so no Python project sync is needed. A missing uv widens those
# products to every backend lane rather than failing the job.
- - uses: astral-sh/setup-uv@37802adc94f370d6bfd71619e3f0bf239e1f3b78 # v7.6.0
- continue-on-error: true
+ - uses: ./.github/actions/setup-uv
with:
- version: '0.11.28' # pinned: unpinned setup-uv calls GH API on every job, exhausts rate limit
+ enable-cache: false
+ continue-on-error: true
# Split from the computation below so the cargo steps can be skipped
# on the PRs that do not need them, which is nearly all of them.