Merge pull request #1 from vikmaksymenko/main #12
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: Run all tests | |
on: | |
push: | |
branches: [ main ] | |
pull_request: | |
branches: [ main ] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out project | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: pip3 install -r requirements.txt | |
- name: Install Playwright Chromium browsers | |
run: playwright install --with-deps chromium | |
- name: Start the Bulldoggy app | |
run: uvicorn app.main:app & | |
- name: Wait 10s for Bulldoggy app to be ready | |
run: sleep 10s | |
- name: Execute tests | |
run: python3 -m pytest -s -v --browser chromium tests |