Skip to content

๐Ÿ”ฎ CI

๐Ÿ”ฎ CI #191

Workflow file for this run

name: ๐Ÿ”ฎ CI
on: [push]
jobs:
build:
runs-on: ubuntu-latest
env:
DJANGO_SETTINGS_MODULE: config.settings_test
PYTHONPATH: .
strategy:
matrix:
python-version: ["3.10"]
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: giw
POSTGRES_PASSWORD: giwsecret
POSTGRES_DB: giw
ports:
- 5432:5432
steps:
- uses: actions/checkout@v3
- name: ๐Ÿ Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: ๐ŸŒ Install dependencies
run: |
pip install -r requirements.txt
- name: ๐Ÿ“„ Copy empty .env.test to .env
run: |
cp .env.test .env
- name: โœจ Black, isort, flake8
run: |
make quality
env:
USE_VENV: 1
- name: ๐Ÿšง Check pending migrations
run: |
django-admin makemigrations --check --dry-run --noinput
- name: ๐Ÿคนโ€ Run the unit tests
run: |
make test-unit
env:
DJANGO_DEBUG: True
USE_VENV: 1