-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated html_accessibility_check.yml
- Loading branch information
Showing
1 changed file
with
21 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 |