-
-
Notifications
You must be signed in to change notification settings - Fork 30
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #110 from Webperf-se/pa11y
Pa11y
- Loading branch information
Showing
15 changed files
with
254 additions
and
109 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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
name: "Regression Test - Accessibility (Pa11y) Test" | ||
on: | ||
push: | ||
paths-ignore: | ||
- '**.md' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository code | ||
uses: actions/checkout@v2 | ||
if: ${{ success() }} | ||
- name: Setup python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' # Version range or exact version of a Python version to use, using SemVer's version range syntax | ||
architecture: 'x64' # optional x64 or x86. Defaults to x64 if not specified | ||
- name: Setup dependencies using pip | ||
run: pip install -r requirements.txt | ||
if: ${{ success() }} | ||
- name: Setup node | ||
uses: actions/setup-node@v2 | ||
- name: Setup Pa11y CI npm package | ||
run: npm install -g pa11y-ci | ||
- name: Setup config (using SAMPLE-config.py as config.py) | ||
run: python .github/workflows/verify_result.py -c false | ||
if: ${{ success() }} | ||
- name: Accessibility (Pa11y) | ||
run: | | ||
python default.py -t 18 -r -u https://webperf.se/ -o .github/workflows/testresult-18.json | ||
python .github/workflows/verify_result.py -t 18 | ||
if: ${{ success() }} |
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
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
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
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 |
---|---|---|
@@ -0,0 +1,47 @@ | ||
# Accessibility (Pa11y) | ||
[![Regression Test - Accessibility (Pa11y) Test](https://github.com/Webperf-se/webperf_core/actions/workflows/regression-test-pa11y.yml/badge.svg)](https://github.com/Webperf-se/webperf_core/actions/workflows/regression-test-pa11y.yml) | ||
|
||
Add small description of what this test is. | ||
|
||
## What is being tested? | ||
|
||
It test accessibility on the specified url. | ||
Please note that automated accessibility test generally only find 20-30% of all errors. | ||
Even if this test is not finding anything you should still do a manuall check once in a while. | ||
|
||
## How are rating being calculated? | ||
|
||
We are rating the url based on: | ||
- If Pa11y finds 0 errors you get 5.0 in rating | ||
- If Pa11y finds just 1 error you get 4.0 in rating | ||
- If Pa11y finds 2-3 errors you get 3.0 in rating | ||
- If Pa11y finds 4-7 errors you get 2.0 in rating | ||
- Else you will get 1.0 in rating | ||
|
||
## Read more | ||
|
||
* https://github.com/pa11y/pa11y-ci | ||
* https://github.com/pa11y/pa11y | ||
|
||
## How to setup? | ||
|
||
This section has not been written yet. | ||
|
||
### Prerequirements | ||
|
||
* Fork this repository | ||
|
||
### Setup with GitHub Actions | ||
|
||
Read more on the [general page for github actions](../getting-started-github-actions.md). | ||
|
||
### Setup Locally | ||
|
||
* Follow [general local setup steps for this repository](../getting-started-local.md) | ||
* Download and install Node.js | ||
* Install Pa11y CI npm package ( `npm install -g pa11y-ci` ) | ||
|
||
## FAQ | ||
|
||
No frequently asked questions yet :) | ||
|
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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
Binary file not shown.
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
Oops, something went wrong.