-
Notifications
You must be signed in to change notification settings - Fork 2
56 lines (50 loc) · 1.16 KB
/
test.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
name: Unit Test
on:
push:
branches:
- test-action
pull_request:
branches:
- master
jobs:
test-gws:
runs-on: ubuntu-latest
container: gplates/gws
services:
postgis:
image: gplates/postgis
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
redis:
image: redis
options: >-
--health-cmd "redis-cli ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 6379:6379
steps:
-
name: Check out repository code
uses: actions/checkout@v4
-
name: Run GWS
run: |
cp django/GWS/env.template django/GWS/.env
docker run -d --name gws -p 18000:80 -v `pwd`:/gws gplates/gws
-
name: Sleep for 10 seconds
run: sleep 10s
shell: bash
-
name: Run testcases
run: |
cd test/testcases
export GWS_SERVER_URL=http://gws:18000
python3 -m unittest -vv