Skip to content

Accessibility Testing feature to browser agent, hercules will help to achieve WCAG 2.0, 2.1, 2.2 on level A, AA and AAA #86

Accessibility Testing feature to browser agent, hercules will help to achieve WCAG 2.0, 2.1, 2.2 on level A, AA and AAA

Accessibility Testing feature to browser agent, hercules will help to achieve WCAG 2.0, 2.1, 2.2 on level A, AA and AAA #86

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
env:
POETRY_VERSION: "1.8.3"
POETRY_URL: https://install.python-poetry.org
jobs:
linter_tester:
strategy:
fail-fast: false
matrix:
python-version: [3.11]
os: [ubuntu-latest]
runs-on: ${{ matrix.os }}
env:
LLM_MODEL_NAME: ${{ secrets.LLM_MODEL_NAME }}
LLM_MODEL_API_KEY: ${{ secrets.LLM_MODEL_API_KEY }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
id: setup_python
# Poetry cache depends on OS, Python version and Poetry version.
- name: Cache Poetry cache
uses: actions/cache@v4
with:
path: ~/.cache/pypoetry
key: poetry-cache-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ env.POETRY_VERSION }}
# virtualenv cache should depends on OS, Python version and `poetry.lock` (and optionally workflow files).
- name: Cache Packages
uses: actions/cache@v4
with:
path: ~/.local
key: poetry-local-${{ runner.os }}-${{ steps.setup_python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}-${{ hashFiles('.github/workflows/*.yml') }}
- name: Install Poetry ${{ env.POETRY_VERSION }}
run: |
curl -sSL ${{ env.POETRY_URL }} | python - --version ${{ env.POETRY_VERSION }}
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Install project
run: make install-extra
- name: Run linter
run: make lint
# - name: Run tests
# run: make test
# - name: Upload coverage to Codecov
# uses: codecov/codecov-action@v3
# with:
# fail_ci_if_error: true
# token: ${{ secrets.CODECOV_TOKEN }}