-
Notifications
You must be signed in to change notification settings - Fork 13
39 lines (36 loc) · 1.01 KB
/
integration.yaml
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
name: Integration
on: [pull_request]
jobs:
integration-test-ephemeral:
runs-on: ubuntu-latest
services:
postgres:
image: postgres:latest
env:
POSTGRES_DB: nycmesh-dev
POSTGRES_USER: nycmesh
POSTGRES_PASSWORD: helloThisIsATest
POSTGRES_PORT: 5432
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- uses: actions/checkout@v3
- name: "Install Dependencies"
run: |
pip install --upgrade pip
pip install .
- name: "Start meshdb API"
run: gunicorn meshdb:app --graceful-timeout 5 --bind=0.0.0.0:8080 & sleep 3
- name: "Run Integration Test Script"
run: |
PYTHONPATH=. pytest .
env:
MESHDB_DB_NAME: nymesh-dev
MESHDB_DB_USER: nycmesh
MESHDB_DB_HOST: localhost
MESHDB_DB_PASSWORD: helloThisIsATest