-
Notifications
You must be signed in to change notification settings - Fork 11
43 lines (41 loc) · 1.18 KB
/
ci.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: CI
on: [push]
jobs:
test:
runs-on: ubuntu-latest
services:
redis:
image: redis:latest
ports:
- 6379:6379
postgres:
image: bitnami/postgresql:latest
env:
POSTGRESQL_DATABASE: backslash
POSTGRESQL_PASSWORD: backslash
POSTGRESQL_USERNAME: backslash
POSTGRESQL_FSYNC: "off"
ports:
- 5432:5432
options: >-
--mount type=tmpfs,destination=/var/lib/postgresql/data
--health-cmd "pg_isready -d backslash -U backslash -p 5432"
--health-interval 10s
--health-timeout 5s
--health-retries 5
steps:
- name: Install dependencies
run: |
sudo apt-get update
sudo apt-get install libsasl2-dev python-dev libldap2-dev libssl-dev
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: "3.9"
- run: pip install pipenv
- name: Check out repository code
uses: actions/checkout@v2
- run: pipenv install -d
- run: pipenv run manage db upgrade
- run: pipenv run manage unittest
- run: pipenv run manage