Skip to content

Commit

Permalink
add config to pa11y to workaround github actions issue
Browse files Browse the repository at this point in the history
fixes #1932
  • Loading branch information
wren committed Oct 2, 2024
1 parent af1b9f1 commit cb99feb
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 cb99feb

Please sign in to comment.