change fixed URL to relative URL in GitHub Actions (#699)
This commit is contained in:
4
.github/actions/automatic-test/action.yml
vendored
4
.github/actions/automatic-test/action.yml
vendored
@@ -13,7 +13,6 @@ runs:
|
|||||||
run: |
|
run: |
|
||||||
from fontTools.ttLib import TTFont
|
from fontTools.ttLib import TTFont
|
||||||
from pathlib import Path
|
from pathlib import Path
|
||||||
from os import environ as env
|
|
||||||
|
|
||||||
font = TTFont('parts/fonts/proportional.otf')
|
font = TTFont('parts/fonts/proportional.otf')
|
||||||
keys = set(font.getBestCmap().keys())
|
keys = set(font.getBestCmap().keys())
|
||||||
@@ -28,7 +27,8 @@ runs:
|
|||||||
if missing:
|
if missing:
|
||||||
print('Missing characters:')
|
print('Missing characters:')
|
||||||
for char, file, i in missing:
|
for char, file, i in missing:
|
||||||
print(f"'{char}'({ord(char):x}) in {file} at line {i} (https://github.com/26F-Studio/Techmino/blob/{env['GITHUB_SHA']}/{file}#L{i})")
|
print(f"'{char}'({ord(char):x}) in {file} at line {i} " \
|
||||||
|
f"(${{ github.server_url }}/${{ github.repository }}/blob/${{ github.sha }}/{file}#L{i})")
|
||||||
exit(1)
|
exit(1)
|
||||||
else:
|
else:
|
||||||
print('All characters are present in the font.')
|
print('All characters are present in the font.')
|
||||||
|
|||||||
Reference in New Issue
Block a user