mirror of
https://github.com/apache/superset.git
synced 2024-09-12 00:29:39 -04:00
This upgrades the `setup-python` action and pins it to the latest v2, which suppresses the warnings about set-env and add-path: Error: The `set-env` command is deprecated and will be disabled on November 16th. Please upgrade to using Environment Files. For more information see: https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/
44 lines
1.2 KiB
YAML
44 lines
1.2 KiB
YAML
name: Translations
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
frontend-check:
|
|
runs-on: ubuntu-18.04
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
- name: Install dependencies
|
|
uses: apache-superset/cached-dependencies@b90713b
|
|
with:
|
|
run: npm-install
|
|
- name: lint
|
|
working-directory: ./superset-frontend
|
|
run: |
|
|
npm run check-translation
|
|
|
|
babel-extract:
|
|
runs-on: ubuntu-18.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: apache-superset/cached-dependencies@b90713b
|
|
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
|