Skip to content

Commit fd96163

Browse files
committed
feat: github actions workflow to test feature branches ensure accessibility testing
1 parent 0469f1c commit fd96163

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed
+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Accessibility Tests
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- gh-pages
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- name: Checkout repository
14+
uses: actions/checkout@v3
15+
with:
16+
ref: ${{ github.head_ref }}
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v4
20+
with:
21+
python-version: '3.10'
22+
23+
- name: Install dependencies
24+
run: |
25+
python3 -m pip install --upgrade pip
26+
pip install -r requirements.txt
27+
pip install axe-core-python pytest playwright axe-playwright-python
28+
29+
- name: Install Playwright browsers
30+
run: |
31+
playwright install
32+
33+
- name: Run accessibility tests
34+
run: |
35+
python3 -m pytest tests/

0 commit comments

Comments
 (0)