From 9ca279e460109a1a319e5e3b3f1fe0a5f4b2b083 Mon Sep 17 00:00:00 2001 From: Manoel Aranda Neto Date: Thu, 16 Apr 2026 17:01:08 +0100 Subject: [PATCH] chore: update GitHub Actions for Node 24 --- .github/workflows/ci.yml | 6 +++--- .github/workflows/generate-references.yml | 2 +- .github/workflows/release.yml | 12 ++++++------ .nvmrc | 1 + pyproject.toml | 1 + 5 files changed, 12 insertions(+), 10 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 534f781d..8f33d438 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: python-version: 3.11.11 - name: Install uv - uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1 + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 with: enable-cache: true pyproject-file: 'pyproject.toml' @@ -62,7 +62,7 @@ jobs: python-version: ${{ matrix.python-version }} - name: Install uv - uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1 + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 with: enable-cache: true pyproject-file: 'pyproject.toml' @@ -114,7 +114,7 @@ jobs: python-version: 3.12 - name: Install uv - uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1 + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 with: enable-cache: true pyproject-file: 'integration_tests/django5/pyproject.toml' diff --git a/.github/workflows/generate-references.yml b/.github/workflows/generate-references.yml index 51b2d346..c1f64f83 100644 --- a/.github/workflows/generate-references.yml +++ b/.github/workflows/generate-references.yml @@ -21,7 +21,7 @@ jobs: python-version: 3.11.11 - name: Install uv - uses: astral-sh/setup-uv@0c5e2b8115b80b4c7c5ddf6ffdd634974642d182 # v5.4.1 + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 with: enable-cache: true pyproject-file: 'pyproject.toml' diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 334ea41b..00552930 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,7 +29,7 @@ jobs: should-release: ${{ steps.check.outputs.should-release }} steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: main fetch-depth: 0 @@ -89,19 +89,19 @@ jobs: private-key: ${{ secrets.GH_APP_POSTHOG_PYTHON_RELEASER_PRIVATE_KEY }} - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 with: ref: main fetch-depth: 0 token: ${{ steps.releaser.outputs.token }} - name: Set up Python - uses: actions/setup-python@v5 + uses: actions/setup-python@v6 with: python-version: 3.11.11 - name: Install uv - uses: astral-sh/setup-uv@d4b2f3b6ecc6e67c4457f6d3e41ec42d3d0fcb86 # v5.4.2 + uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0 with: enable-cache: true pyproject-file: "pyproject.toml" @@ -114,7 +114,7 @@ jobs: - name: Cache Sampo CLI id: cache-sampo - uses: actions/cache@v3 + uses: actions/cache@v5 with: path: ~/.cargo/bin/sampo key: sampo-${{ runner.os }}-${{ runner.arch }} @@ -233,7 +233,7 @@ jobs: if: always() && needs.release.result == 'success' && needs.notify-approval-needed.outputs.slack_ts != '' steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Notify Slack - Released uses: posthog/.github/.github/actions/slack-thread-reply@main diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..54c65116 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v24 diff --git a/pyproject.toml b/pyproject.toml index 20945b39..050f5a21 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -108,6 +108,7 @@ packages = [ [tool.uv] exclude-newer = "7 days" +required-version = ">=0.8.0" [tool.pytest.ini_options] asyncio_mode = "auto"