Add question editing feature to /ask service then add answer editing feature to tasks 5, 6, 7 #106
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: 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@v3 | |
- | |
name: Setup Poetry | |
uses: Gr1N/setup-poetry@v8 | |
with: | |
poetry-version: "1.5.1" | |
- | |
name: Set up Python | |
uses: actions/setup-python@v4 | |
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 |