mirror of
https://github.com/mozilla/pdf.js.git
synced 2025-04-19 06:38:07 +02:00
Use Python 3.13 in the GitHub workflows
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.
This commit is contained in:
parent
6676492920
commit
913738644a
3 changed files with 5 additions and 5 deletions
4
.github/workflows/fluent_linter.yml
vendored
4
.github/workflows/fluent_linter.yml
vendored
|
@ -27,10 +27,10 @@ jobs:
|
||||||
- name: Checkout repository
|
- name: Checkout repository
|
||||||
uses: actions/checkout@v4
|
uses: actions/checkout@v4
|
||||||
|
|
||||||
- name: Use Python 3.12
|
- name: Use Python 3.13
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.13'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Install Fluent dependencies
|
- name: Install Fluent dependencies
|
||||||
|
|
4
.github/workflows/font_tests.yml
vendored
4
.github/workflows/font_tests.yml
vendored
|
@ -48,10 +48,10 @@ jobs:
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: npm ci
|
run: npm ci
|
||||||
|
|
||||||
- name: Use Python 3.12
|
- name: Use Python 3.13
|
||||||
uses: actions/setup-python@v5
|
uses: actions/setup-python@v5
|
||||||
with:
|
with:
|
||||||
python-version: '3.12'
|
python-version: '3.13'
|
||||||
cache: 'pip'
|
cache: 'pip'
|
||||||
|
|
||||||
- name: Install Fonttools
|
- name: Install Fonttools
|
||||||
|
|
|
@ -32,5 +32,5 @@ it before running the font tests:
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install fonttools
|
pip install fonttools
|
||||||
gulp fonttest
|
npx gulp fonttest
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue