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():