feat: add limit + submission reward for submitting form #443
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 Apps Tests | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run-apps-tests: | |
runs-on: ubuntu-latest | |
services: | |
sqlite: | |
image: python:3 | |
env: | |
SQLITE_DB: test_db.sqlite3 | |
ports: | |
- 5432:5432 | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Set up Python | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: Prepare SQLite database | |
run: | | |
python manage.py migrate | |
- name: Run tests | |
run: | | |
python manage.py test | |