Merge pull request #17198 from timvandermeij/python-3.12-lint

Update the GitHub Actions workflow for the Fluent linter
This commit is contained in:
Tim van der Meij 2023-10-28 20:48:34 +02:00 committed by GitHub
commit 973cbb000b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -19,19 +19,24 @@ permissions:
contents: read contents: read
jobs: jobs:
linter: lint:
name: Lint
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Clone repository - name: Checkout repository
uses: actions/checkout@v4 uses: actions/checkout@v4
- name: Set up Python 3
- name: Use Python 3.12
uses: actions/setup-python@v4 uses: actions/setup-python@v4
with: with:
python-version: '3.10' python-version: '3.12'
cache: 'pip' cache: 'pip'
- name: Install Python dependencies
- name: Install Fluent dependencies
run: | run: |
pip install -r .github/requirements.txt pip install -r .github/requirements.txt
- name: Lint reference
- name: Lint Fluent reference files
run: | run: |
moz-fluent-lint ./l10n/en-US --config .github/linter_config.yml moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml