Skip to content

Commit

Permalink
updated html_accessibility_check.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
dulude committed Dec 5, 2024
1 parent c1a4f7a commit 569f289
Showing 1 changed file with 21 additions and 13 deletions.
34 changes: 21 additions & 13 deletions .github/workflows/html_accessibility_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,23 +19,31 @@ on:
description: "URL to scan"
required: false
type: 'string'


jobs:
a11yWatchRun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Web Accessibility Evaluation of ${{ inputs.target_url }}
uses: a11ywatch/[email protected]
- name: Set up Python 3.8.12
uses: actions/setup-python@v5 ## needed for caching
with:
python-version: 3.8.12
cache: 'pip'
- name: Add conda to system path
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
echo $CONDA/bin >> $GITHUB_PATH
- name: Install dependencies
run: |
pip install json_repair
- name: Check-out notebook-ci-actions repository
uses: actions/checkout@v4
with:
WEBSITE_URL: ${{ inputs.target_url }}
SITE_WIDE: true
SUBDOMAINS: true
SITEMAP: true
UPGRADE: true
LIST: true
EXTERNAL: true
UPLOAD: true
FAIL_ERRORS_COUNT: 1
A11YWATCH_TOKEN: ${{ secrets.A11YWATCH_TOKEN }}
repository: spacetelescope/notebook-ci-actions
path: temp_jsonparser
ref: main
- name: Web Accessibility Evaluation of ${{ inputs.target_url }}
run: |
curl --location --request POST 'https://api.a11ywatch.com/api/crawl' --header 'Authorization: ${{ secrets.A11YWATCH_TOKEN }}' --header 'Content-Type: application/json' -d '{ "url": "${{ inputs.target_url }}" }' > scan_results.json
python temp_jsonparser/.github/helpers/parse_a11ywatch_json_file.py scan_results.json

0 comments on commit 569f289

Please sign in to comment.