forked from apache/superset
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pulling Upstream refs/tags/4.1.1 into ortege (#46)
👑 *An automated PR to sync with upstream* Co-authored-by: josedev-union josedev-union@users.noreply.github.com
- Loading branch information
Showing
3,120 changed files
with
247,712 additions
and
329,886 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,2 @@ | ||
docker/**/*.sh text eol=lf | ||
*.svg binary |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
name: 'Change Detector' | ||
description: 'Detects file changes for pull request and push events' | ||
inputs: | ||
token: | ||
description: 'GitHub token for authentication' | ||
required: true | ||
outputs: | ||
python: | ||
description: 'Whether Python-related files were changed' | ||
value: ${{ steps.change-detector.outputs.python }} | ||
frontend: | ||
description: 'Whether frontend-related files were changed' | ||
value: ${{ steps.change-detector.outputs.frontend }} | ||
docker: | ||
description: 'Whether docker-related files were changed' | ||
value: ${{ steps.change-detector.outputs.docker }} | ||
docs: | ||
description: 'Whether docs-related files were changed' | ||
value: ${{ steps.change-detector.outputs.docs }} | ||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Detect file changes | ||
id: change-detector | ||
run: | | ||
python --version | ||
python scripts/change_detector.py | ||
shell: bash | ||
env: | ||
GITHUB_TOKEN: ${{ inputs.token }} | ||
GITHUB_OUTPUT: ${{ github.output }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
name: 'Setup Python Environment' | ||
description: 'Set up Python and install dependencies with optional configurations.' | ||
inputs: | ||
python-version: | ||
description: 'Python version to set up. Accepts a version number, "current", or "next".' | ||
required: true | ||
default: 'current' | ||
cache: | ||
description: 'Cache dependencies. Options: pip' | ||
required: false | ||
default: 'pip' | ||
requirements-type: | ||
description: 'Type of requirements to install. Options: base, development, default' | ||
required: false | ||
default: 'dev' | ||
install-superset: | ||
description: 'Whether to install Superset itself. If false, only python is installed' | ||
required: false | ||
default: 'true' | ||
|
||
runs: | ||
using: 'composite' | ||
steps: | ||
- name: Interpret Python Version | ||
id: set-python-version | ||
shell: bash | ||
run: | | ||
if [ "${{ inputs.python-version }}" = "current" ]; then | ||
echo "PYTHON_VERSION=3.10" >> $GITHUB_ENV | ||
elif [ "${{ inputs.python-version }}" = "next" ]; then | ||
echo "PYTHON_VERSION=3.11" >> $GITHUB_ENV | ||
elif [ "${{ inputs.python-version }}" = "previous" ]; then | ||
echo "PYTHON_VERSION=3.9" >> $GITHUB_ENV | ||
else | ||
echo "PYTHON_VERSION=${{ inputs.python-version }}" >> $GITHUB_ENV | ||
fi | ||
- name: Set up Python ${{ env.PYTHON_VERSION }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ env.PYTHON_VERSION }} | ||
cache: ${{ inputs.cache }} | ||
- name: Install dependencies | ||
run: | | ||
if [ "${{ inputs.install-superset }}" = "true" ]; then | ||
sudo apt-get update && sudo apt-get -y install libldap2-dev libsasl2-dev | ||
pip install --upgrade pip setuptools wheel | ||
if [ "${{ inputs.requirements-type }}" = "dev" ]; then | ||
pip install -r requirements/development.txt | ||
elif [ "${{ inputs.requirements-type }}" = "base" ]; then | ||
pip install -r requirements/base.txt | ||
fi | ||
fi | ||
shell: bash |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
name: 'Setup supersetbot' | ||
description: 'Sets up supersetbot npm lib from the repo or npm' | ||
inputs: | ||
from-npm: | ||
description: 'Install from npm instead of local setup' | ||
required: false | ||
default: 'true' # Defaults to using the local setup | ||
runs: | ||
using: 'composite' | ||
steps: | ||
|
||
- name: Setup Node Env | ||
uses: actions/setup-node@v4 | ||
with: | ||
node-version: '20' | ||
|
||
- name: Install supersetbot from npm | ||
if: ${{ inputs.from-npm == 'true' }} | ||
shell: bash | ||
run: npm install -g supersetbot | ||
|
||
- name: "Checkout ${{ github.ref }} ( ${{ github.sha }} )" | ||
if: ${{ inputs.from-npm == 'false' }} | ||
uses: actions/checkout@v4 | ||
with: | ||
repository: apache-superset/supersetbot | ||
path: supersetbot | ||
|
||
- name: Setup supersetbot from repo | ||
if: ${{ inputs.from-npm == 'false' }} | ||
shell: bash | ||
working-directory: supersetbot | ||
run: | | ||
# simple trick to install globally with dependencies | ||
npm pack | ||
npm install -g ./supersetbot*.tgz | ||
- name: echo supersetbot version | ||
shell: bash | ||
run: supersetbot version |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.