Skip to content

Commit

Permalink
try : echo pa11y
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitloup committed Sep 21, 2023
1 parent 676f2cf commit 3631e52
Showing 1 changed file with 24 additions and 23 deletions.
47 changes: 24 additions & 23 deletions .github/workflows/pod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
max-parallel: 4
matrix:
python-version: ['3.8', '3.9', '3.10']
python-version: ['3.9'] # ['3.8', '3.9', '3.10']

steps:
- uses: actions/checkout@v3
Expand Down Expand Up @@ -67,25 +67,25 @@ jobs:
cd pod
yarn
- name: Run Tests with coverage
env:
PYTHONUNBUFFERED: 1
run: |
coverage run --append --source='.' manage.py test -v 3 --settings=pod.main.test_settings
# - name: Run Tests with coverage
# env:
# PYTHONUNBUFFERED: 1
# run: |
# coverage run --append --source='.' manage.py test -v 3 --settings=pod.main.test_settings

- name: Add Gecko driver
if: matrix.python-version == '3.9'
uses: browser-actions/setup-geckodriver@latest
with:
token: ${{ secrets.GITHUB_TOKEN }}
# - name: Add Gecko driver
# if: matrix.python-version == '3.9'
# uses: browser-actions/setup-geckodriver@latest
# with:
# token: ${{ secrets.GITHUB_TOKEN }}

- name: Run Integration Tests
if: matrix.python-version == '3.9'
run: |
export DISPLAY=:99
geckodriver &
Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
python manage.py test -v 3 --settings=pod.main.test_settings pod.main.integration_tests.selenium_pod_integration_tests
# - name: Run Integration Tests
# if: matrix.python-version == '3.9'
# run: |
# export DISPLAY=:99
# geckodriver &
# Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
# python manage.py test -v 3 --settings=pod.main.test_settings pod.main.integration_tests.selenium_pod_integration_tests

## Start Accessibility tests with pa11y ##

Expand Down Expand Up @@ -127,11 +127,12 @@ jobs:
message: '<details><summary>Pa11y testing results</summary>```${{ steps.pa11y_output.outputs.content }}```</details>'

- name: Comment on pull request.
if: ${{ contains(steps.pa11y_output.outputs.content, 'Errors in http://') == 'false' }}
uses: thollander/actions-comment-pull-request@v2
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
message: '<details><summary>Pa11y testing results</summary>OK</details>'
run: echo '${{ steps.pa11y_output.outputs.content }}'
# if: ${{ contains(steps.pa11y_output.outputs.content, 'Errors in http://') == 'false' }}
# uses: thollander/actions-comment-pull-request@v2
# with:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# message: '<details><summary>Pa11y testing results</summary>OK</details>'

- name: Check for pa11y failures.
if: contains(steps.pa11y_output.outputs.content, 'Errors in http://')
Expand Down

0 comments on commit 3631e52

Please sign in to comment.