Skip to content

Commit

Permalink
Try service
Browse files Browse the repository at this point in the history
  • Loading branch information
palewire committed Jun 11, 2021
1 parent 392fac8 commit b6a1620
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ jobs:
tests:
name: "Tests"
runs-on: ubuntu-latest
services:
postgres:
image: postgres:10.8
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: github_actions
ports:
- 5432:5432
# needed because the postgres container does not provide a healthcheck
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
strategy:
matrix:
python: [3.9]
Expand All @@ -19,13 +30,8 @@ jobs:
with:
python-version: ${{ matrix.python }}

- name: Set up PostgreSQL
uses: harmon758/postgresql-action@v1
with:
postgresql version: '11'
postgresql: postgres_copy
postgresql user: postgres
postgresql password: postgres
- name: psycopg2 prerequisites
run: sudo apt-get install libpq-dev

- id: install-pipenv
name: Install pipenv
Expand Down

0 comments on commit b6a1620

Please sign in to comment.