Skip to content

Commit

Permalink
Merge pull request #59 from spacetelescope/revert-58-refactor_html_ac…
Browse files Browse the repository at this point in the history
…cessibility_check

Revert "Refactor html accessibility check"
  • Loading branch information
dulude authored Dec 5, 2024
2 parents eadecaa + 9f5bd7e commit 8655619
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 125 deletions.
104 changes: 0 additions & 104 deletions .github/helpers/parse_a11ywatch_json_file.py

This file was deleted.

34 changes: 13 additions & 21 deletions .github/workflows/html_accessibility_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,31 +19,23 @@ on:
description: "URL to scan"
required: false
type: 'string'


jobs:
a11yWatchRun:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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:
repository: spacetelescope/notebook-ci-actions
path: temp_jsonparser
- 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_results.py scan_results.json
uses: a11ywatch/[email protected]
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 }}

0 comments on commit 8655619

Please sign in to comment.