File tree Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Expand file tree Collapse file tree 2 files changed +78
-0
lines changed Original file line number Diff line number Diff line change
1
+ name : Accessibility
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - main
7
+
8
+
9
+ jobs :
10
+ accessibility :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout Django core
15
+ uses : actions/checkout@v4
16
+ - name : Checkout Django admin demo
17
+ uses : actions/checkout@v4
18
+ with :
19
+ repository : knyghty/django-admin-demo
20
+ ref : a58fa374767a1904dbf0e45e9cc0df1cd2692838
21
+ path : demo
22
+ - name : Set up Python
23
+ uses : actions/setup-python@v5
24
+ with :
25
+ python-version : ' 3.13'
26
+ cache : ' pip'
27
+ cache-dependency-path : ' demo/requirements.txt'
28
+ - name : Set up Node
29
+ uses : actions/setup-node@v4
30
+ - name : Install Requirements
31
+ run : pip install -r demo/requirements.txt
32
+ - name : Launch migrations
33
+ run : python demo/manage.py migrate
34
+ - name : Install pa11y
35
+ run : npm install -g pa11y
36
+ - name : Run the project and pa11y
37
+ run : >-
38
+ python demo/manage.py runserver
39
+ & (sleep 10 && pa11y http://127.0.0.1:8000/
40
+ --config ./pa11y.json
41
+ --runner axe
42
+ --include-warnings)
43
+ && pa11y http://127.0.0.1:8000/en/admin/demo/artist/
44
+ --config ./pa11y.json
45
+ --runner axe
46
+ --include-warnings
47
+ # TODO: remove this when the errors are fixed.
48
+ continue-on-error : true
Original file line number Diff line number Diff line change
1
+ {
2
+ "defaults" : {
3
+ "timeout" : 10000
4
+ },
5
+ "chromeLaunchConfig" : {
6
+ "args" : [
7
+ " --no-sandbox" ,
8
+ " --disable-setuid-sandbox" ,
9
+ " --disable-dev-shm-usage" ,
10
+ " --disable-gpu" ,
11
+ " --headless"
12
+ ]
13
+ },
14
+ "actions" : [
15
+ " navigate to http://127.0.0.1:8000/en/admin/login/" ,
16
+ " wait for element #login-form to be visible" ,
17
+ " set field #id_username to admin" ,
18
+ " set field #id_password to correcthorsebatterystaple" ,
19
+ " click element input[type=submit]" ,
20
+ " wait for url to be http://127.0.0.1:8000/en/admin/"
21
+ ],
22
+ "urls" : [
23
+ " http://127.0.0.1:8000/en/admin/" ,
24
+ " http://127.0.0.1:8000/en/admin/demo/artist/" ,
25
+ " http://127.0.0.1:8000/en/admin/demo/artist/7zX2wRWDKLiW2V5QlI4QXU/change/" ,
26
+ " http://127.0.0.1:8000/en/admin/demo/release/" ,
27
+ " http://127.0.0.1:8000/en/admin/demo/release/7xxg6PunBVeuTliClh4H5p/change/"
28
+
29
+ ]
30
+ }
You can’t perform that action at this time.
0 commit comments