Replace Travis with Github Actions (#416)

Closes #415

Also enables coverage tracking of Django templates, hence the ~30% drop in coverage!
This commit is contained in:
2021-01-25 01:20:12 +00:00
committed by GitHub
parent 2414eb9724
commit 8ad629a47e
9 changed files with 87 additions and 79 deletions

View File

@@ -24,10 +24,8 @@ def create_browser():
# No caching, please and thank you
options.add_argument("--aggressive-cache-discard")
options.add_argument("--disk-cache-size=0")
# God Save The Queen
options.add_argument("--lang=en_GB")
options.add_argument("--headless")
if os.environ.get('CI', False):
if settings.CI:
options.add_argument("--no-sandbox")
driver = webdriver.Chrome(options=options)
return driver