Feature/certificate workflow #186
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: Django and bot tests | |
on: | |
push: | |
branches: [develop] | |
pull_request: | |
branches: [develop] | |
jobs: | |
testing: | |
runs-on: ubuntu-latest | |
steps: | |
- | |
name: Check out the repo | |
uses: actions/checkout@v4 | |
- | |
name: Setup Poetry | |
uses: Gr1N/setup-poetry@v9 | |
with: | |
poetry-version: "1.8.2" | |
- | |
name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: "3.11" | |
- | |
name: Install dependencies | |
run: | | |
poetry install | |
- | |
name: Django tests | |
env: | |
NEED_SQLITE: True | |
run: | | |
poetry run python src/backend/manage.py test src/backend | |
- | |
name: Bot tests | |
env: | |
NEED_SQLITE: True | |
run: | | |
cd src/bot | |
poetry run python -m unittest |