Skip to content

Commit

Permalink
Update font registry on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
goanpeca committed Jan 9, 2020
1 parent 8a9c846 commit 44d3c2e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
pip install -e .
- name: Install fonts
run: |
sudo xvfb-run -a -s '-screen 0 2048x1536x24' python tests/utils.py
xvfb-run -a -s '-screen 0 2048x1536x24' python tests/utils.py
- name: Test
run: |
xvfb-run -a -s '-screen 0 2048x1536x24' python setup.py test
Expand Down
5 changes: 4 additions & 1 deletion tests/utils.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import json
import os
import shutil
import sys
from unittest import TestCase, expectedFailure

from colosseum.constants import BLOCK, HTML4, MEDIUM, THICK, THIN
Expand Down Expand Up @@ -468,7 +469,9 @@ def test_method(self):


if __name__ == '__main__':
# On CI we use system font locations
# On CI we use system font locations except for linux containers
system = bool(os.environ.get('GITHUB_WORKSPACE', None))
if sys.platform.startswith('linux'):
system = False
print('Copying test fonts to "{path}"...'.format(path=FontDatabase.fonts_path(system=system)))
copy_fonts(system=system)

0 comments on commit 44d3c2e

Please sign in to comment.