Add e2e tests with playwrite browser automation #14
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Lint | |
on: | |
push: | |
branches: [ master ] | |
pull_request: | |
branches: [ master ] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: (Playbooks package) Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
cd python/packages/playbooks | |
poetry install | |
- name: (Playbooks package) Run linting | |
run: | | |
cd python/packages/playbooks | |
poetry run ruff check . | |
poetry run black --check . | |
- name: (Website API) Install dependencies | |
run: | | |
cd website/api | |
pip install -r requirements.txt | |
- name: (Website API) Run linting | |
run: | | |
cd website/api | |
ruff check . | |
black --check . |