Add test framework using pytest and playwright #3
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: Tests | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Build MyRadio and set up test environment | |
run: | | |
docker compose -f docker-compose.yml -f docker-compose.test.yml up -d | |
- name: Run tests | |
run: | | |
docker compose exec myradio poetry run py.test |