Merge pull request #4544 from mozilla/update-to-python-311-mpp-2530 #535
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
name: Lint Pending Translations | |
on: | |
push: | |
paths: | |
- 'frontend/pendingTranslations.ftl' | |
- '.github/workflows/lint-pending-strings.yml' | |
- 'privaterelay/pending_locales/en/pending.ftl' | |
branches: [ '*' ] | |
workflow_dispatch: | |
jobs: | |
linter: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Clone repository | |
uses: actions/checkout@v4 | |
with: | |
submodules: 'recursive' | |
- name: Set up Python 3 | |
uses: actions/setup-python@v5.0.0 | |
with: | |
python-version: '3.11' | |
cache: 'pip' | |
- name: Install Python dependencies | |
run: | | |
pip install -r privaterelay/locales/.github/requirements.txt | |
- name: Lint frontend pending translations | |
run: | | |
moz-fluent-lint frontend --config privaterelay/locales/.github/linter_config.yml | |
- name: Lint backend pending translations | |
run: | | |
moz-fluent-lint privaterelay/pending_locales --config privaterelay/locales/.github/linter_config.yml |