Skip to content

Commit

Permalink
Add config to pa11y to workaround github actions issue (#1933)
Browse files Browse the repository at this point in the history
fixes #1932
  • Loading branch information
wren authored Oct 2, 2024
1 parent af1b9f1 commit de79733
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,14 @@ def generate_pa11y_config_from_sitemap():
urls += [url["loc"] for url in xml_sitemap["urlset"]["url"]]

with open(CONFIG_FILENAME, "w") as f:
f.write(json.dumps({"urls": urls}))
f.write(
json.dumps(
{
"defaults": {"chromeLaunchConfig": {"args": ["--no-sandbox"]}},
"urls": urls,
}
)
)


def output_file(file):
Expand Down

0 comments on commit de79733

Please sign in to comment.