mirror of
https://github.com/google/fonts.git
synced 2024-12-16 20:52:41 +03:00
ba4e1c9de2
Added ttfautohint to avoid error with Fontbakery.
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
name: Google Fonts QA
|
|
on:
|
|
push:
|
|
branches:
|
|
- main
|
|
pull_request:
|
|
branches:
|
|
- main
|
|
|
|
jobs:
|
|
|
|
build:
|
|
name: Build Google Fonts
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Cancel previous
|
|
uses: styfle/cancel-workflow-action@0.8.0
|
|
with:
|
|
access_token: ${{ github.token }}
|
|
|
|
- uses: actions/checkout@v1
|
|
- name: Setup python
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
# TODO use build matrix?
|
|
python-version: 3.8
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
sudo apt install libharfbuzz-dev libharfbuzz-bin libfreetype6-dev libglib2.0-dev libcairo2-dev ttfautohint
|
|
python -m pip install --upgrade pip
|
|
pip install gftools[qa] pytest
|
|
|
|
- name: Check fonts
|
|
env:
|
|
GF_API_KEY: ${{ secrets.GF_API_KEY }}
|
|
BSTACK_ACCESS_KEY: ${{ secrets.BSTACK_ACCESS_KEY }}
|
|
BSTACK_USERNAME: ${{ secrets.BSTACK_USERNAME }}
|
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
|
PR_NUMBER: ${{ github.event.number }}
|
|
run: |
|
|
sh .ci/run.sh
|
|
- name: Check file existence
|
|
id: check_files
|
|
uses: andstor/file-existence-action@v1
|
|
with:
|
|
files: "out"
|
|
|
|
- name: Upload check results
|
|
if: steps.check_files.outputs.files_exists == 'true'
|
|
uses: actions/upload-artifact@v1
|
|
with:
|
|
name: qa
|
|
path: out/
|
|
|