Skip to content

Merge pull request #45 from pratul/master-1 #237

Merge pull request #45 from pratul/master-1

Merge pull request #45 from pratul/master-1 #237

Workflow file for this run

name: Django Build
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run Tests
run: |
python manage.py collectstatic --noinput
DEBUG=1 python manage.py test
env:
SECRET_KEY: "thisisthesecretkey"
DATABASE_URL: "postgres://postgres:postgres@localhost:5432/postgres"
- name: Lint
run: |
touch .envrc
pip install -r requirements_dev.txt
pip install -r requirements.txt
make lint