mirror of https://github.com/apache/superset.git
77 lines
2.0 KiB
YAML
77 lines
2.0 KiB
YAML
# Python Misc unit tests
|
|
name: Python Misc
|
|
|
|
on:
|
|
push:
|
|
branches-ignore:
|
|
- "dependabot/npm_and_yarn/**"
|
|
pull_request:
|
|
|
|
jobs:
|
|
lint:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/cached-dependencies
|
|
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-20.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/cached-dependencies
|
|
with:
|
|
run: |
|
|
apt-get-install
|
|
pip-upgrade
|
|
pip install -r requirements/integration.txt
|
|
- name: pre-commit
|
|
run: pre-commit run --all-files
|
|
|
|
babel-extract:
|
|
runs-on: ubuntu-20.04
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7]
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Setup Python
|
|
uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
uses: ./.github/actions/cached-dependencies
|
|
with:
|
|
run: |
|
|
apt-get-install
|
|
pip-upgrade
|
|
pip install -r requirements/base.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
|