build.yaml 1.0 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. name: Roboto
  2. on: [pull_request]
  3. jobs:
  4. build:
  5. name: Build Roboto
  6. runs-on: ubuntu-latest
  7. steps:
  8. - uses: actions/checkout@v2
  9. - name: Setup python
  10. uses: actions/setup-python@v1
  11. with:
  12. # TODO use build matrix?
  13. python-version: 3.8
  14. - name: Install dependencies
  15. run: |
  16. sudo apt install libharfbuzz-dev libharfbuzz-bin
  17. python -m pip install --upgrade pip
  18. pip install -r requirements.txt
  19. pip install .
  20. - name: Build fonts
  21. run: sh sources/build.sh
  22. - name: Upload fonts
  23. uses: actions/upload-artifact@v1
  24. with:
  25. name: fonts
  26. path: fonts/
  27. - name: Test fonts
  28. run: |
  29. fontbakery check-profile tests/test_general.py fonts/unhinted/Roboto[ital,wdth,wght].ttf
  30. fontbakery check-profile tests/test_android.py fonts/android/Roboto[ital,wdth,wght].ttf
  31. fontbakery check-profile tests/test_web.py fonts/web/Roboto[ital,wdth,wght].ttf