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.
chore: Adding pip-compile-multi et al. (apache#10499)
* chore: Adding pip-compile-multi et al * Specify requirements.txt path for fossa * [ci] Fixing CI Co-authored-by: John Bodley <[email protected]> Co-authored-by: Jesse Yang <[email protected]>
- Loading branch information
1 parent
72ced53
commit cda764f
Showing
41 changed files
with
480 additions
and
302 deletions.
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
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 |
---|---|---|
|
@@ -37,15 +37,18 @@ jobs: | |
uses: actions/[email protected] | ||
with: | ||
python-version: '3.6' | ||
|
||
- name: Install dependencies | ||
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
npm-install && build-instrumented-assets | ||
pip-install && setup-postgres && testdata | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/testing.txt | ||
setup-postgres | ||
testdata | ||
npm-install | ||
build-instrumented-assets | ||
cypress-install | ||
- name: Run Cypress | ||
uses: apache-superset/cached-dependencies@b90713b | ||
env: | ||
|
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 |
---|---|---|
|
@@ -8,8 +8,6 @@ jobs: | |
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
env: | ||
PYTHON_LINT_TARGET: setup.py superset tests | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
|
@@ -19,16 +17,37 @@ jobs: | |
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
uses: apache-superset/cached-dependencies@b90713b | ||
- name: black | ||
run: black --check $(echo $PYTHON_LINT_TARGET) | ||
- name: mypy | ||
run: mypy $(echo $PYTHON_LINT_TARGET) | ||
- name: isort | ||
run: isort --check-only --recursive $(echo $PYTHON_LINT_TARGET) | ||
with: | ||
run: | | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/testing.txt | ||
- name: pylint | ||
# `-j 0` run Pylint in parallel | ||
run: pylint -j 0 superset | ||
|
||
pre-commit: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
matrix: | ||
python-version: [3.6] | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
- name: Setup Python | ||
uses: actions/[email protected] | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/integration.txt | ||
- name: pre-commit | ||
run: pre-commit run --all-files | ||
|
||
docs: | ||
runs-on: ubuntu-18.04 | ||
strategy: | ||
|
@@ -45,8 +64,9 @@ jobs: | |
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
pip-install | ||
pip install -r docs/requirements.txt | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/documentation.txt | ||
- name: Build documentation | ||
run: sphinx-build -b html docs _build/html -W | ||
|
||
|
@@ -66,8 +86,9 @@ jobs: | |
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
pip-install | ||
pip install -r docs/requirements.txt | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/documentation.txt | ||
- name: Test babel extraction | ||
run: flask fab babel-extract --target superset/translations --output superset/translations/messages.pot --config superset/translations/babel.cfg -k _,__,t,tn,tct | ||
|
||
|
@@ -107,7 +128,9 @@ jobs: | |
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
pip-install | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/testing.txt | ||
setup-postgres | ||
- name: Run celery | ||
run: celery worker --app=superset.tasks.celery_app:app -Ofair -c 2 & | ||
|
@@ -151,7 +174,9 @@ jobs: | |
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
pip-install | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/testing.txt | ||
setup-mysql | ||
- name: Run celery | ||
run: celery worker --app=superset.tasks.celery_app:app -Ofair -c 2 & | ||
|
@@ -188,7 +213,9 @@ jobs: | |
uses: apache-superset/cached-dependencies@b90713b | ||
with: | ||
run: | | ||
pip-install | ||
apt-get-install | ||
pip-upgrade | ||
pip install -r requirements/testing.txt | ||
mkdir ${{ github.workspace }}/.temp | ||
- name: Run celery | ||
run: celery worker --app=superset.tasks.celery_app:app -Ofair -c 2 & | ||
|
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
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.