Fix Docs Accessibility Testing (#1588)

* update run_shell task to use newer python

* add shell arg back

* make tests run when certain files change
This commit is contained in:
Jonathan Wren 2022-09-03 14:21:27 -07:00 committed by GitHub
parent 8032aa9f2f
commit bd02c52d5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 1 deletions

View file

@ -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:

View file

@ -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:

View file

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