Course search #331
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: backend-tests | |
on: | |
push: | |
branches: [main, development] | |
pull_request: | |
branches: [main, development] | |
workflow_dispatch: | |
jobs: | |
test: | |
runs-on: self-hosted | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.11" | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install poetry | |
poetry install --directory=./backend | |
- name: Compile translations | |
run: django-admin compilemessages | |
- name: Execute tests | |
run: cd backend; python manage.py test |