mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Python 3.13 is the current version and was released over a month ago (see https://devguide.python.org/versions). The dependencies we use now support Python 3.13, most importantly `fonttools` which uses OS-specific builds and for which compatibility got introduced in https://github.com/fonttools/fonttools/pull/3656 and the corresponding `cp313` wheels for all distributions are published on https://pypi.org/project/fonttools/#files. Moreover, we fix forgotten `npx` usage in the font tests README which was encountered while testing this patch.
42 lines
950 B
YAML
42 lines
950 B
YAML
name: Lint Fluent Reference Files
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'l10n/en-US/**.ftl'
|
|
- '.github/fluent_linter_config.yml'
|
|
- '.github/workflows/fluent_linter.yml'
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
paths:
|
|
- 'l10n/en-US/**.ftl'
|
|
- '.github/fluent_linter_config.yml'
|
|
- '.github/workflows/fluent_linter.yml'
|
|
branches:
|
|
- master
|
|
workflow_dispatch:
|
|
permissions:
|
|
contents: read
|
|
|
|
jobs:
|
|
lint:
|
|
name: Lint
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Use Python 3.13
|
|
uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.13'
|
|
cache: 'pip'
|
|
|
|
- name: Install Fluent dependencies
|
|
run: |
|
|
pip install -r .github/requirements.txt
|
|
|
|
- name: Lint Fluent reference files
|
|
run: |
|
|
moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml
|