Skip to content

Poc ci accessibility #1

Poc ci accessibility

Poc ci accessibility #1

Workflow file for this run

name: Accessibility
on:
pull_request:
branches:
- "poc-ci-accessibility"
- main
jobs:
accessibility:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_BD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install Requirements
run: python -m pip install .
- name: Cache Django
uses: actions/cache@v3
with:
path: Django/*
key: Django
- name: Create dummy app
run: |
django-admin startproject allyapp
python allyapp/manage.py migrate
- name: Install pa11y
run: npm install -g pa11y-ci
- name: Run the project
run: python allyapp/manage.py runserver & sleep 5 &
- name: Run pa11y
run: pa11y-ci --threshold 1