superset/.github/workflows/superset-translations.yml
Jesse Yang 7cbf21c39f
build: set actions/setup-python to v2 (#11644)
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/
2020-11-11 13:15:05 -08:00

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