-
Notifications
You must be signed in to change notification settings - Fork 4
43 lines (39 loc) · 1.17 KB
/
integration.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Integration
on: push
jobs:
integration:
runs-on: ubuntu-18.04
container: python:3.8.12-slim
services:
postgres:
image: postgres
env:
POSTGRES_DB: database
POSTGRES_HOST_AUTH_METHOD: trust
POSTGRES_PASSWORD: password
steps:
- name: Install container dependencies
run: |
apt-get update
apt-get install -y make software-properties-common gnupg2 postgresql-client
add-apt-repository -y ppa:git-core/ppa
apt-get install -y git
- name: Repository checkout
uses: actions/checkout@v2
- name: Set up Python 3.8
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install service dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install pipenv
make init
- name: Create database schema
run: |
psql -f "sql/table.sql" postgresql://postgres:password@postgres:5432/database
- name: Run ci bundle command
run: |
make ci-bundle
env:
DB_URL: postgresql://postgres:password@postgres:5432/database