-
Notifications
You must be signed in to change notification settings - Fork 3
80 lines (67 loc) · 2.1 KB
/
optional_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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
name: OptionalIntegrationTests
on:
schedule:
- cron: '0 5 * * 0'
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
OptionalDynamicIntegrationTests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: View versions
run: |
docker -v
docker compose version
- name: Usage info
run: |
df -h
free -m
- name: Build
run: |
cp .env.test .env
make pull-dev-images
docker compose --compatibility -f docker-compose.deps.yml -f docker-compose.test.yml pull redis postgresql nginx-qgis
docker compose --compatibility -f docker-compose.deps.yml -f docker-compose.test.yml build --parallel qgis geoserver micka
- name: Download test data
run: |
mkdir -p tmp
docker compose --compatibility -f docker-compose.deps.yml -f docker-compose.test.yml run --rm --no-deps layman_test bash -c "bash ensure-test-data.sh"
- name: Usage info
if: always()
run: |
df -h
free -m
- name: Run tests
run: |
make test-separated test_type=optional max_fail=0
- name: Usage info
if: always()
run: |
df -h
free -m
- name: Save logs to files
if: failure()
run: |
mkdir logs
docker logs layman-celery_worker_test-1 &> logs/log_celery_worker.txt
docker logs timgen &> logs/log_timgen.txt
docker logs micka &> logs/log_micka.txt
docker logs layman-geoserver-1 &> logs/log_geoserver.txt
- name: Upload logs
if: failure()
uses: actions/upload-artifact@v2
with:
name: test_logs
path: logs
- name: Upload artifacts
if: failure()
uses: actions/upload-artifact@v2
with:
name: test_artifacts
path: |
sudo chown -R $(id -un) layman_data_test
tmp/artifacts/
layman_data_test/