Browse Source

Add postgres

pull/453/head
Pēteris Caune 4 years ago
parent
commit
957220c835
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
1 changed files with 15 additions and 0 deletions
  1. +15
    -0
      .github/workflows/django.yml

+ 15
- 0
.github/workflows/django.yml View File

@ -15,6 +15,17 @@ jobs:
matrix:
python-version: [3.6, 3.7, 3.8]
services:
postgres:
image: 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 ${{ matrix.python-version }}
@ -27,5 +38,9 @@ jobs:
pip install -r requirements.txt
pip install braintree mysqlclient apprise
- name: Run Tests
env:
DB: postgres
DB_HOST: localhost
DB_PORT: 5432
run: |
python manage.py test

Loading…
Cancel
Save