Skip to content

Fix test config

Fix test config #53

Workflow file for this run

name: Django checks
on:
push:
branches:
- master
- django
jobs:
checks:
name: Run Django checks
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: manti_by.settings.sqlite
steps:
- name: Check out the repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.11
- name: Cache pip
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Check for missing migrations
run: |
python manage.py makemigrations --dry-run --check --verbosity=3
- name: Run Django system checks
run: |
python manage.py check --fail-level WARNING
- name: Run Pytest suite
run: |
pytest --create-db --disable-warnings