You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@superset.apache.org by hu...@apache.org on 2026/06/04 19:17:35 UTC
(superset) branch master updated: ci: run full Python-version matrix on push, current-only on PRs (#40722)
This is an automated email from the ASF dual-hosted git repository.
Humbedooh pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/superset.git
The following commit(s) were added to refs/heads/master by this push:
new 80a3df3550e ci: run full Python-version matrix on push, current-only on PRs (#40722)
80a3df3550e is described below
commit 80a3df3550ef923e47d16e6de3a9945bda406503
Author: Evan Rusackas <ev...@preset.io>
AuthorDate: Thu Jun 4 12:17:29 2026 -0700
ci: run full Python-version matrix on push, current-only on PRs (#40722)
Co-authored-by: Claude Code <no...@anthropic.com>
---
.asf.yaml | 1 -
.github/workflows/pre-commit.yml | 5 ++++-
.github/workflows/superset-extensions-cli.yml | 4 +++-
.github/workflows/superset-python-integrationtest.yml | 4 +++-
.github/workflows/superset-python-unittest.yml | 4 +++-
5 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/.asf.yaml b/.asf.yaml
index 6c517f69c8f..d920b93920b 100644
--- a/.asf.yaml
+++ b/.asf.yaml
@@ -83,7 +83,6 @@ github:
- frontend-build
- playwright-tests (chromium)
- pre-commit (current)
- - pre-commit (previous)
- test-mysql
- test-postgres-required
- test-postgres-hive
diff --git a/.github/workflows/pre-commit.yml b/.github/workflows/pre-commit.yml
index 05237147c88..ffb90a72b52 100644
--- a/.github/workflows/pre-commit.yml
+++ b/.github/workflows/pre-commit.yml
@@ -22,7 +22,10 @@ jobs:
timeout-minutes: 20
strategy:
matrix:
- python-version: ["current", "previous", "next"]
+ # Run the full version spread on push (master/release) and nightly,
+ # but only the current version on PRs — lint/format/type results
+ # rarely differ across patch versions, so 3x per PR is wasteful.
+ python-version: ${{ github.event_name == 'pull_request' && fromJSON('["current"]') || fromJSON('["current", "previous", "next"]') }}
steps:
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )"
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
diff --git a/.github/workflows/superset-extensions-cli.yml b/.github/workflows/superset-extensions-cli.yml
index 96765b60283..d8d2de08459 100644
--- a/.github/workflows/superset-extensions-cli.yml
+++ b/.github/workflows/superset-extensions-cli.yml
@@ -23,7 +23,9 @@ jobs:
timeout-minutes: 30
strategy:
matrix:
- python-version: ["previous", "current", "next"]
+ # Full version spread on push (master/release) + nightly; current only
+ # on PRs to cut runner cost (cross-version breaks are caught at merge).
+ python-version: ${{ github.event_name == 'pull_request' && fromJSON('["current"]') || fromJSON('["previous", "current", "next"]') }}
defaults:
run:
working-directory: superset-extensions-cli
diff --git a/.github/workflows/superset-python-integrationtest.yml b/.github/workflows/superset-python-integrationtest.yml
index 504e3853005..4043b9bcb43 100644
--- a/.github/workflows/superset-python-integrationtest.yml
+++ b/.github/workflows/superset-python-integrationtest.yml
@@ -128,7 +128,9 @@ jobs:
id-token: write
strategy:
matrix:
- python-version: ["current", "previous", "next"]
+ # Full version spread on push (master/release) + nightly; current only
+ # on PRs to cut runner cost (cross-version breaks are caught at merge).
+ python-version: ${{ github.event_name == 'pull_request' && fromJSON('["current"]') || fromJSON('["current", "previous", "next"]') }}
env:
PYTHONPATH: ${{ github.workspace }}
SUPERSET_CONFIG: tests.integration_tests.superset_test_config
diff --git a/.github/workflows/superset-python-unittest.yml b/.github/workflows/superset-python-unittest.yml
index 5eb368c18db..269afb400cc 100644
--- a/.github/workflows/superset-python-unittest.yml
+++ b/.github/workflows/superset-python-unittest.yml
@@ -43,7 +43,9 @@ jobs:
id-token: write
strategy:
matrix:
- python-version: ["previous", "current", "next"]
+ # Full version spread on push (master/release) + nightly; current only
+ # on PRs to cut runner cost (cross-version breaks are caught at merge).
+ python-version: ${{ github.event_name == 'pull_request' && fromJSON('["current"]') || fromJSON('["previous", "current", "next"]') }}
env:
PYTHONPATH: ${{ github.workspace }}
steps: