Skip to content

Commit

Permalink
add postgres to gh-actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
erikvw committed Aug 13, 2024
1 parent c915f55 commit ea9b991
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 11 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on: [push, pull_request]

jobs:
build:
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }}, ${{ matrix.database-engine }})
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
python-version: ['3.12']
django-version: ['4.2', '5.0', 'dev']
django-version: ['4.2', '5.0', '5.1', 'dev']
database-engine: ["mysql", "postgres"]
services:
mysql:
image: mysql:latest
Expand All @@ -22,6 +23,17 @@ jobs:
ports:
- 3306:3306
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=5s --health-retries=3
postgres:
image: postgres:latest
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

steps:
- name: Install pycups and words dependency
Expand Down
9 changes: 0 additions & 9 deletions edc_qareports/navbar_item.py

This file was deleted.

Empty file.

0 comments on commit ea9b991

Please sign in to comment.