Skip to content

Merge pull request #8 from galactee/dependabot/pip/django-4.1.10 #16

Merge pull request #8 from galactee/dependabot/pip/django-4.1.10

Merge pull request #8 from galactee/dependabot/pip/django-4.1.10 #16

Workflow file for this run

name: Run tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10"]
services:
postgres:
image: postgres:14-alpine
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
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.example to .env
run: |
cp .env.example .env
- name: Run linting
run: |
black --check .
flake8
isort . --check
- name: Run the unit tests
run: |
python manage.py test