-
Notifications
You must be signed in to change notification settings - Fork 14.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3,202 changed files
with
237,478 additions
and
372,623 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
Validating CODEOWNERS rules …
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.