-
Notifications
You must be signed in to change notification settings - Fork 4
58 lines (45 loc) · 1.55 KB
/
build.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
name: Run Tests
on:
push:
branches:
- master
- HG-Aims-Upgrade
jobs:
test:
name: Test - QGIS ${{ matrix.qgis_image.name }} & Postgre ${{ matrix.db_image.name }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
qgis_image:
- {name: "3.28", image: "qgis/qgis:release-3_28"}
db_image:
- {name: "14-3.1", image: "kartoza/postgis:14-3.1"}
env:
PGHOST: localhost
PGPORT: 5432
PGUSER: postgres
PGPASSWORD: postgres
BASE_DIR: ${{ github.workspace }}
DB_DOCKER_IMAGE: ${{ matrix.db_image.image }}
QGIS_DOCKER_IMAGE: ${{ matrix.qgis_image.image }}
QGIS_DISPLAY: ":99"
DOCKER_NETWORK: aims
PLUGIN_NAME: QGIS-AIMS-Plugin
steps:
- name: Checkout QGIS-AIMS-Plugin
uses: actions/checkout@v3
- name: Create Docker Network
run: bash $BASE_DIR/scripts/steps/create_docker_network.sh
- name: Launch database container
run: bash $BASE_DIR/scripts/steps/launch_database_container.sh
- name: Run database tests
run: bash $BASE_DIR/scripts/steps/run_db_tests.sh
- name: Launch QGIS container
run: bash $BASE_DIR/scripts/steps/launch_qgis_container.sh
# - name: Load test data
# run: bash $BASE_DIR/scripts/steps/load_qgis_test_data.sh
- name: Setup QGIS plugin
run: bash $BASE_DIR/scripts/steps/setup_qgis_plugin.sh
- name: Run QGIS tests
run: bash $BASE_DIR/scripts/steps/run_qgis_tests.sh