From 957220c835f15261f329e017fed327d40fe8d853 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Fri, 20 Nov 2020 10:55:41 +0200 Subject: [PATCH] Add postgres --- .github/workflows/django.yml | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 1930200c..cccbf3a1 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -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