-
Notifications
You must be signed in to change notification settings - Fork 103
169 lines (146 loc) · 4.5 KB
/
install_run.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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
# Workflow for testing installing, running, and uninstalling FontBakery
name: ⚙️ Install & Run
on:
push:
branches:
- '**'
paths-ignore:
- 'docs/**'
- '**.md'
- '**.txt'
- '!requirements*.txt'
tags-ignore:
- '**'
pull_request:
paths-ignore:
- 'docs/**'
- '**.md'
- '**.txt'
- '!requirements*.txt'
jobs:
install-run:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0 # unshallow fetch for setuptools-scm (otherwise the version is always 0.1.dev1)
- name: Set up Python 3.10
uses: actions/setup-python@v4
with:
python-version: "3.10"
cache: 'pip' # caching pip dependencies
- name: Install FontBakery (no extras)
run: |
python -m pip install --upgrade pip
python -m pip install .
fontbakery -h
fontbakery --version
- name: Run Universal checks
run: >-
fontbakery check-universal
-x win_ascent_and_descent
-x os2_metrics_match_hhea
-x soft_dotted
data/test/source-sans-pro/OTF/SourceSansPro-Regular.otf
data/test/source-sans-pro/OTF/SourceSansPro-Italic.otf;
fontbakery check-universal
-x win_ascent_and_descent
-x os2_metrics_match_hhea
-x fsselection
-x valid_default_instance_nameids
-x soft_dotted
data/test/source-sans-pro/VAR/SourceSansVariable-Roman.ttf
- name: Run Universal check using 'check-profile'
run: >-
fontbakery check-profile fontbakery.profiles.universal
data/test/mada/Mada-Regular.ttf
--verbose
-c required_tables
- name: Run Opentype check on a TTC file
run: >-
fontbakery check-opentype
data/test/ttc/NotoSerifToto.ttc
-x tabular_kerning
-x style
-x family
- name: Run Font Bureau checks
run: >-
fontbakery check-fontbureau
-c ots
-c ytlc_sanity
data/test/fontbureau/ytlcSample.ttf
- name: Run Adobe Fonts checks
run: >-
fontbakery check-adobefonts
data/test/source-sans-pro/OTF/SourceSansPro-Regular.otf
data/test/source-sans-pro/OTF/SourceSansPro-Italic.otf;
fontbakery check-adobefonts
data/test/source-sans-pro/VAR/SourceSansVariable-Roman.ttf
- name: Try running UFO Sources checks
run: >-
fontbakery check-ufo-sources --verbose data/test/test.ufo
|| exit 0
shell: bash
- name: Install `ufo-sources` extra
run: |
python -m pip install '.[ufo-sources]'
- name: Run UFO Sources checks
run: >-
fontbakery check-ufo-sources --verbose data/test/test.ufo;
fontbakery check-ufo-sources -x designspace_has_consistent
"data/test/stupidfont/Stupid Font.designspace"
- name: Install `shaping` extra
run: |
python -m pip install '.[shaping]'
- name: Run Shaping checks
run: >-
fontbakery check-shaping data/test/mada/Mada-Regular.ttf
- name: Install `googlefonts` extra
run: |
python -m pip install '.[googlefonts]'
- name: Run Google Fonts checks
run: >-
fontbakery check-googlefonts
-c canonical_filename
-c vendor_id
-c glyph_coverage
-c name/license
-c hinting_impact
-c unreachable_glyphs
-c contour_count
-c outline_colinear_vectors
data/test/cabin/Cabin-*.ttf
- name: Install `fontwerk` extra
run: |
python -m pip install '.[fontwerk]'
- name: Run Fontwerk checks
run: >-
fontbakery check-fontwerk
-c weight_class_fvar
-c inconsistencies_between_fvar_stat
-c style_linking
-c consistent_axes
-c metadata/parses
-c usweightclass
data/test/source-sans-pro/VAR/SourceSansVariable-Roman.ttf
- name: Install `notofonts` extra
run: |
python -m pip install '.[notofonts]'
- name: Run Noto Fonts checks
run: >-
fontbakery check-notofonts
-c unicode_range_bits
-c noto_trademark
-c noto_vendor
-c alien_codepoints
-c tnum_horizontal_metrics
-c control_chars
-c canonical_filename
data/test/notosanskhudawadi/NotoSansKhudawadi-Regular.ttf
- name: Uninstall FontBakery
run: |
python -m pip uninstall fontbakery -y