-
Notifications
You must be signed in to change notification settings - Fork 24
60 lines (46 loc) · 1.2 KB
/
run_tests.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Run tests
on:
push:
branches:
- master
tags:
- '*'
pull_request:
branches:
- master
release:
types: ['prereleased', 'released']
jobs:
run-tests:
runs-on: ubuntu-latest
services:
postgres:
image: postgis/postgis:9.6-2.5
env:
POSTGRES_DB: qwat_test
POSTGRES_PASSWORD: postgres
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
PGSERVICEFILE: ${{github.workspace}}/tests/pg_service.conf
steps:
- uses: actions/checkout@v3
- name: Install PostgreSQL client
run: |
sudo apt-get update
sudo apt-get install --yes postgresql-client
- name: Install Python dependencies
run: pip install -r requirements.txt
- name: Run tests
run: tests/tests.sh
- name: Run scalability tests
run: tests/tests_scalability.sh -i 20
- name: Run scalability tests multithreaded
run: tests/tests_scalability_multithread.sh -i 20
- name: Run upgrade tests
run: tests/tests_upgrade.sh