diff --git a/.github/requirements.txt b/.github/fluent_linter_requirements.txt similarity index 100% rename from .github/requirements.txt rename to .github/fluent_linter_requirements.txt diff --git a/.github/font_tests_requirements.txt b/.github/font_tests_requirements.txt new file mode 100644 index 000000000..e8ce6dfc4 --- /dev/null +++ b/.github/font_tests_requirements.txt @@ -0,0 +1 @@ +fonttools==4.* diff --git a/.github/workflows/fluent_linter.yml b/.github/workflows/fluent_linter.yml index f92d1df03..e7dfbca34 100644 --- a/.github/workflows/fluent_linter.yml +++ b/.github/workflows/fluent_linter.yml @@ -34,11 +34,10 @@ jobs: with: python-version: '3.14' cache: 'pip' + cache-dependency-path: '.github/fluent_linter_requirements.txt' - - name: Install Fluent dependencies - run: | - pip install -r .github/requirements.txt + - name: Install requirements + run: pip install -r .github/fluent_linter_requirements.txt - name: Lint Fluent reference files - run: | - moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml + run: moz-fluent-lint ./l10n/en-US --config .github/fluent_linter_config.yml diff --git a/.github/workflows/font_tests.yml b/.github/workflows/font_tests.yml index 6ff7aecde..e8630d330 100644 --- a/.github/workflows/font_tests.yml +++ b/.github/workflows/font_tests.yml @@ -56,9 +56,10 @@ jobs: with: python-version: '3.14' cache: 'pip' + cache-dependency-path: '.github/font_tests_requirements.txt' - - name: Install Fonttools - run: pip install fonttools + - name: Install requirements + run: pip install -r .github/font_tests_requirements.txt - name: Run font tests run: npx gulp fonttest --headless