-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (43 loc) · 1.22 KB
/
accesibility.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
name: Accessibility
on:
push:
branches: ["main", "auto-test"]
pull_request:
branches: ["main", "auto-test"]
workflow_dispatch:
permissions:
contents: read
jobs:
accessibility:
runs-on: ubuntu-latest
steps:
# Check out the repository code
- name: Check out code
uses: actions/checkout@v2
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flask
pip install -r requirements.txt
# Set up Node.js
- name: Set up Node.js
uses: actions/setup-node@v2
# Install accessibility-checker
- name: Install accessibility-checker
run: npm install -g accessibility-checker
- name: Serve Flask App
working-directory: ./app
run: |
export FLASK_APP=app.py
flask run -h localhost -p 5000 &
# Run accessibility-checker
- name: Run accessibility-checker
run: |
sleep 10
achecker http://localhost:5000/test
# achecker http://localhost:5000/upload
# achecker http://localhost:5000/settings