mirror of
https://github.com/googlefonts/lexend.git
synced 2026-09-10 07:26:23 -04:00
44 lines
1.3 KiB
YAML
44 lines
1.3 KiB
YAML
name: Fontbakery CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
static-font-ci-job:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.8]
|
|
name: Checks fonts
|
|
steps:
|
|
- name: Check out Lexend sources repository
|
|
uses: actions/checkout@v2
|
|
- name: Set up Python v${{ matrix.python-version }} environment
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Python build dependency cache lookup
|
|
uses: actions/cache@v1
|
|
with:
|
|
path: ~/.cache/pip
|
|
# Check for requirements file cache hit
|
|
key: ${{ runner.os }}-pip-${{ hashFiles('${{ steps.config.outputs.dependpath }}') }}
|
|
- name: Install Python build dependencies
|
|
uses: py-actions/py-dependency-install@v2
|
|
with:
|
|
update-wheel: "true"
|
|
update-setuptools: "true"
|
|
- name: Build fonts
|
|
run: gftools builder sources/lexend.yaml
|
|
- name: Make Fontbakery Report
|
|
uses: f-actions/font-bakery@v1
|
|
with:
|
|
version: "latest"
|
|
subcmd: "check-googlefonts"
|
|
args: "--succinct --loglevel WARN --ghmarkdown report.md"
|
|
path: "fonts/lexend/variable/*.ttf"
|
|
- name: Upload files
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
name: QA_files
|
|
path: fonts/CI/
|