Skip to content
This repository has been archived by the owner on Oct 23, 2024. It is now read-only.

Remove psql -U postgres hint #44

Remove psql -U postgres hint

Remove psql -U postgres hint #44

Workflow file for this run

name: Lantern CI
on:
push:
branches:
- master
pull_request:
branches:
- master
workflow_dispatch:
jobs:
test:
name: Build and Test
runs-on: ubuntu-latest
permissions:
packages: write
services:
db:
image: postgres:13.3
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- name: Checkout Code
uses: actions/[email protected]
- name: Set up Python 3.10
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install dependencies from requirements.txt
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run migrations
env:
POSTGRES_PASSWORD: postgres
run: |
python manage.py migrate
- name: Run Django Tests
env:
DJANGO_SECRET_KEY: django-insecure-key-for-testing
POSTGRES_PASSWORD: postgres
run: |
python manage.py test