Fix CI #80
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Roboto | |
on: [pull_request] | |
jobs: | |
build: | |
name: Build Roboto | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup python | |
uses: actions/setup-python@v1 | |
with: | |
# TODO use build matrix? | |
python-version: 3.10.16 | |
- name: Install dependencies | |
run: | | |
sudo apt install libharfbuzz-dev libharfbuzz-bin libcairo2-dev jq | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
pip install . | |
- name: Build fonts | |
run: sh sources/build.sh | |
- name: Test fonts | |
run: | | |
fontbakery check-profile tests/test_general.py fonts/unhinted/Roboto[ital,wdth,wght].ttf | |
fontbakery check-profile tests/test_android.py fonts/android/Roboto[ital,wdth,wght].ttf | |
fontbakery check-profile tests/test_web.py fonts/web/Roboto[ital,wdth,wght].ttf | |
sh scripts/regression_test.sh | |
- name: Upload | |
uses: actions/upload-artifact@v4 | |
with: | |
name: roboto_files | |
path: | | |
fonts/ | |
diffs/ | |