From bd02c52d5a021c8b7b6d2eb28acd04f5f7b05bec Mon Sep 17 00:00:00 2001 From: Jonathan Wren Date: Sat, 3 Sep 2022 14:21:27 -0700 Subject: [PATCH] Fix Docs Accessibility Testing (#1588) * update run_shell task to use newer python * add shell arg back * make tests run when certain files change --- .github/workflows/docs.yaml | 4 ++++ .github/workflows/testing_prs.yaml | 2 ++ tasks.py | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index becd704c..c51693ab 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -12,6 +12,8 @@ on: - 'mkdocs.yml' - 'readthedocs.yml' - '.github/workflows/docs.yaml' + - 'tasks.py' + - 'pyproject.toml' pull_request: branches: [ develop ] paths: @@ -20,6 +22,8 @@ on: - 'mkdocs.yml' - 'readthedocs.yml' - '.github/workflows/docs.yaml' + - 'tasks.py' + - 'pyproject.toml' jobs: accessibility: diff --git a/.github/workflows/testing_prs.yaml b/.github/workflows/testing_prs.yaml index cc76a866..f6537237 100644 --- a/.github/workflows/testing_prs.yaml +++ b/.github/workflows/testing_prs.yaml @@ -13,6 +13,7 @@ on: - 'poetry.lock' - 'pyproject.toml' - '.github/workflows/testing_prs.yaml' + - 'tasks.py' pull_request: branches: [ develop ] paths: @@ -22,6 +23,7 @@ on: - 'poetry.lock' - 'pyproject.toml' - '.github/workflows/testing_prs.yaml' + - 'tasks.py' defaults: run: diff --git a/tasks.py b/tasks.py index 0fd966bd..ea48a174 100644 --- a/tasks.py +++ b/tasks.py @@ -21,7 +21,7 @@ def delete_files(files): def run_shell(command): # Required to run NPM commands in Windows and *nix - subprocess.call(command, shell=True) + subprocess.run(command, check=True, shell=True) def generate_sitemap():