Skip to content

Install Cairo for Linux #2404

Install Cairo for Linux

Install Cairo for Linux #2404

Workflow file for this run

name: Test
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ${{ matrix.platform }}
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
platform: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install Cairo (Ubuntu)
if: matrix.platform == 'ubuntu-latest'
run: sudo apt-get install libcairo2-dev
- name: Install packages
run: |
pip install .[dev]
pip install pytest
- name: Run Tests
run: |
pytest ./tests
- name: Run Fontbakery tests
run: |
git clone https://github.com/fonttools/fontbakery.git
cd fontbakery
pip install '.[tests]'
cd ..
pip install '.[dev]'
pip freeze
cd fontbakery
pytest
- name: Run gftools tests
run: |
git clone https://github.com/googlefonts/gftools.git
cd gftools
pip install '.[qa]'
cd ..
pip install '.[dev]'
pip freeze
cd gftools
pytest tests -k 'not test_servers and not test_gfgithub'
- name: Run diffenator2 tests
env:
GH_TOKEN: ${{ github.token }}
run: |
git clone https://github.com/googlefonts/diffenator2.git
cd diffenator2
pip install .
cd ..
pip install '.[dev]'
pip freeze
cd diffenator2
pytest tests