-
Notifications
You must be signed in to change notification settings - Fork 18
63 lines (61 loc) · 1.61 KB
/
test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
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 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