You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by ru...@apache.org on 2026/08/13 12:58:56 UTC

(superset) 02/04: ci: cache apt packages with awalsh128/cache-apt-pkgs-action (#42499)

This is an automated email from the ASF dual-hosted git repository.

rusackas pushed a commit to branch ci/setup-uv
in repository https://gitbox.apache.org/repos/asf/superset.git

commit bf549afff30e688fb6a02b8961c2c84d68ca3135
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Mon Jul 27 21:46:23 2026 -0700

    ci: cache apt packages with awalsh128/cache-apt-pkgs-action (#42499)
---
 .github/actions/setup-backend/action.yml    | 8 ++++++--
 .github/workflows/superset-docs-deploy.yml  | 5 ++++-
 .github/workflows/superset-translations.yml | 5 ++++-
 3 files changed, 14 insertions(+), 4 deletions(-)

diff --git a/.github/actions/setup-backend/action.yml b/.github/actions/setup-backend/action.yml
index 8c073c81624..c50536eb165 100644
--- a/.github/actions/setup-backend/action.yml
+++ b/.github/actions/setup-backend/action.yml
@@ -45,14 +45,18 @@ runs:
       with:
         python-version: ${{ steps.set-python-version.outputs.python-version }}
         enable-cache: true
+    - name: Install apt packages
+      if: inputs.install-superset == 'true'
+      uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
+      with:
+        packages: libldap2-dev libsasl2-dev
+        version: 1.0
     - name: Install dependencies
       env:
         INPUT_INSTALL_SUPERSET: ${{ inputs.install-superset }}
         INPUT_REQUIREMENTS_TYPE: ${{ inputs.requirements-type }}
       run: |
         if [ "$INPUT_INSTALL_SUPERSET" = "true" ]; then
-          sudo apt-get update && sudo apt-get -y install libldap2-dev libsasl2-dev
-
           if [ "$INPUT_REQUIREMENTS_TYPE" = "dev" ]; then
             uv pip install --system -r requirements/development.txt
           elif [ "$INPUT_REQUIREMENTS_TYPE" = "base" ]; then
diff --git a/.github/workflows/superset-docs-deploy.yml b/.github/workflows/superset-docs-deploy.yml
index db1fafa5079..864645f7054 100644
--- a/.github/workflows/superset-docs-deploy.yml
+++ b/.github/workflows/superset-docs-deploy.yml
@@ -81,7 +81,10 @@ jobs:
           distribution: "zulu"
           java-version: "21"
       - name: Install Graphviz
-        run: sudo apt-get install -y graphviz
+        uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
+        with:
+          packages: graphviz
+          version: 1.0
       - name: Compute Entity Relationship diagram (ERD)
         env:
           SUPERSET_SECRET_KEY: not-a-secret
diff --git a/.github/workflows/superset-translations.yml b/.github/workflows/superset-translations.yml
index f35dd6d2726..886c2f46d2c 100644
--- a/.github/workflows/superset-translations.yml
+++ b/.github/workflows/superset-translations.yml
@@ -78,7 +78,10 @@ jobs:
 
       - name: Install gettext tools
         if: steps.check.outputs.python == 'true' || steps.check.outputs.frontend == 'true'
-        run: sudo apt-get update && sudo apt-get install -y gettext
+        uses: awalsh128/cache-apt-pkgs-action@553a35bb8ebd9fcabcb1c9451aa4c98e1b4ca8a9 # v1.6.3
+        with:
+          packages: gettext
+          version: 1.0
 
       # Fetch the base ref so we can compare PR-introduced regressions
       # against a fair baseline (also runs babel_update against the base