Skip to content

Commit

Permalink
build-test-fonts.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
Hyphrio authored Aug 20, 2024
1 parent acc5378 commit 5e806c7
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test-fonts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build fonts

on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]

permissions:
contents: read

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.12
uses: actions/setup-python@v3
with:
python-version: "3.12"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build fonts
run: |
gftools builder sources/config.yaml
- name: Test fonts
run: |
fontbakery check-googlefonts fonts/variable/*.ttf && fontbakery check-googlefonts fonts/ttf/*.ttf
- name: Archive fonts
uses: actions/upload-artifact@v4
with:
name: fonts
path: fonts/*

0 comments on commit 5e806c7

Please sign in to comment.