From 913738644a4dacc55190b4b5d7a89bcaf1b21900 Mon Sep 17 00:00:00 2001 From: Tim van der Meij Date: Tue, 12 Nov 2024 20:49:27 +0100 Subject: [PATCH] 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. --- .github/workflows/fluent_linter.yml | 4 ++-- .github/workflows/font_tests.yml | 4 ++-- test/font/README.md | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/fluent_linter.yml b/.github/workflows/fluent_linter.yml index e3137415c8263..786c1c9413f03 100644 --- a/.github/workflows/fluent_linter.yml +++ b/.github/workflows/fluent_linter.yml @@ -27,10 +27,10 @@ jobs: - name: Checkout repository uses: actions/checkout@v4 - - name: Use Python 3.12 + - name: Use Python 3.13 uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' cache: 'pip' - name: Install Fluent dependencies diff --git a/.github/workflows/font_tests.yml b/.github/workflows/font_tests.yml index ff8353b371ae8..5ec02590d8d87 100644 --- a/.github/workflows/font_tests.yml +++ b/.github/workflows/font_tests.yml @@ -48,10 +48,10 @@ jobs: - name: Install dependencies run: npm ci - - name: Use Python 3.12 + - name: Use Python 3.13 uses: actions/setup-python@v5 with: - python-version: '3.12' + python-version: '3.13' cache: 'pip' - name: Install Fonttools diff --git a/test/font/README.md b/test/font/README.md index c3f31cc9e52f2..ec0bfd5ba3fa4 100644 --- a/test/font/README.md +++ b/test/font/README.md @@ -32,5 +32,5 @@ it before running the font tests: python3 -m venv venv source venv/bin/activate pip install fonttools -gulp fonttest +npx gulp fonttest ```