-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -85,6 +85,7 @@ jobs: | |
cache: "pip" | ||
cache-dependency-path: "pyproject.toml" | ||
- name: Install fonts | ||
# This is required until sphinx-opengraph fixes their fallback | ||
run: sudo apt-get install -y fonts-roboto | ||
|
||
- name: Install dependencies | ||
|
@@ -106,11 +107,12 @@ jobs: | |
shell: python | ||
run: | | ||
from pathlib import Path | ||
import re | ||
text = Path("./warnings.txt").read_text().strip() | ||
expected_warning_snippets = ["kitchen-sink", "urllib/parse.py"] | ||
expected_warning_patterns = [r"kitchen\-sink", r"urllib/parse\.py", r"Glyph 10024 .*? missing from current font"] | ||
print("\n=== Sphinx Warnings ===\n\n" + text) # Print just for reference so we can look at the logs | ||
unexpected = [ii for ii in text.split("\n") if not any(snippet in ii for snippet in expected_warning_snippets)] | ||
assert len(unexpected) == 0 | ||
unexpected = [l for l in text.splitlines() if not any(re.search(p, ii) for p in expected_warning_patterns)] | ||
assert len(unexpected) == 0, unexpected | ||
- name: Audit with Lighthouse | ||
uses: treosh/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters