Setup Discord logs #48
Workflow file for this run
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 Tests | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout Repository | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
cache: 'pip' | |
python-version: '3.10' | |
- name: Install Project Dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
python -m playwright install | |
python -m playwright install-deps | |
- name: Install Test Dependencies | |
run: | | |
pip install pytest | |
pip install pytest-mock | |
- name: Run Tests | |
run: | | |
python -m pytest tests | |