Merge pull request #5244 from mozilla/revert-to-python-3.11-mpp-3487 #578
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/[email protected] | |
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 |