-
Notifications
You must be signed in to change notification settings - Fork 6
61 lines (51 loc) · 1.55 KB
/
integration-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
57
58
59
60
61
---
name: Integration Test
on:
pull_request:
branches:
- develop
paths:
- '.github/workflows/integration-test.yml'
- 'docker/**'
push:
branches:
- develop
paths:
- '.github/workflows/integration-test.yml'
- 'docker/**'
release:
types: [published]
permissions:
id-token: write
contents: read
jobs:
integration-test:
runs-on: ubuntu-latest
steps:
- name: git checkout dea-sandbox
uses: actions/checkout@v3
with:
path: dea-sandbox
- name: git checkout dea-notebooks
uses: actions/checkout@v3
with:
repository: GeoscienceAustralia/dea-notebooks
path: dea-notebooks
ref: stable
- name: Configure AWS credentials
uses: aws-actions/configure-aws-credentials@v1
with:
role-to-assume: arn:aws:iam::538673716275:role/github-actions-role-readonly
aws-region: ap-southeast-2
- name: Copy tide modelling files with the AWS CLI
run: aws s3 sync s3://dea-non-public-data/tide_models/tide_models tide_models
- name: Start docker-compose
run: |
sudo chown -R 1000:100 ./dea-notebooks
cd ./dea-sandbox/integration-testing
CURRENT_UID=1000:100 docker-compose up -d
- name: Set up Datacube and Test
run: |
cd ./dea-sandbox/integration-testing
docker-compose exec -T sandbox ./dea-notebooks/Tests/setup_test_datacube.sh
docker-compose exec -T sandbox ./dea-notebooks/Tests/test_notebooks.sh