-
Notifications
You must be signed in to change notification settings - Fork 17
121 lines (99 loc) · 3.61 KB
/
integration-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
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
name: Integration Tests
on:
workflow_call:
secrets:
KENNY_AWS_ACCESS_KEY_ID:
required: true
KENNY_AWS_SECRET_ACCESS_KEY:
required: true
workflow_dispatch:
jobs:
run-tests-basic:
runs-on: ubuntu-latest-4-cores
timeout-minutes: 40
name: All Integration Tests with Basic Config
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-server
timeout-minutes: 7
# TODO(ENG-2537): Use our separate GH actions credentials.
- uses: ./.github/actions/fetch-test-config
with:
aws_access_key_id: ${{ secrets.KENNY_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.KENNY_AWS_SECRET_ACCESS_KEY }}
s3_test_config_path: premerge-basic-test-config.yml
- name: Run the SDK Integration Tests
timeout-minutes: 30
working-directory: integration_tests/sdk
run: python3 run_tests.py -n 8
- name: Set the API key as an env variable.
run: echo "API_KEY=$(aqueduct apikey)" >> $GITHUB_ENV
- name: Run the No-Concurrency Integration Tests
timeout-minutes: 10
working-directory: integration_tests/no_concurrency
env:
SERVER_ADDRESS: localhost:8080
INTEGRATION: aqueduct_demo
run: pytest . -rP
- name: Run the Backend Integration Tests
timeout-minutes: 10
working-directory: integration_tests/backend
env:
SERVER_ADDRESS: localhost:8080
INTEGRATION: aqueduct_demo
run: pytest . -rP -n 1
- uses: ./.github/actions/upload-artifacts
if: always()
with:
prefix: Basic
run-tests-s3-storage:
runs-on: ubuntu-latest-4-cores
timeout-minutes: 40
name: SDK Integration Tests with S3 Storage Layer
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-server
timeout-minutes: 7
# TODO(ENG-2537): Use our separate GH actions credentials.
- uses: ./.github/actions/fetch-test-config
with:
aws_access_key_id: ${{ secrets.KENNY_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.KENNY_AWS_SECRET_ACCESS_KEY }}
s3_test_config_path: premerge-s3-storage-test-config.yml
- name: Install any data connector packages
run: aqueduct install s3
- name: Run the SDK Integration Aqueduct Tests
timeout-minutes: 30
working-directory: integration_tests/sdk
run: python3 run_tests.py --aqueduct -n 8
- uses: ./.github/actions/upload-artifacts
if: always()
with:
prefix: S3 Storage
run-tests-data-integrations:
runs-on: ubuntu-latest
timeout-minutes: 20
name: SDK Data Integration Tests
steps:
- uses: actions/checkout@v2
- uses: ./.github/actions/setup-server
timeout-minutes: 7
# TODO(ENG-2537): Use our separate GH actions credentials.
- uses: ./.github/actions/fetch-test-config
with:
aws_access_key_id: ${{ secrets.KENNY_AWS_ACCESS_KEY_ID }}
aws_secret_access_key: ${{ secrets.KENNY_AWS_SECRET_ACCESS_KEY }}
s3_test_config_path: premerge-data-integration-test-config.yml
- name: Install any data connector packages
run: |
aqueduct install s3
aqueduct install mongodb
aqueduct install snowflake
- name: Run the SDK Data Integration Tests
timeout-minutes: 20
working-directory: integration_tests/sdk
run: python3 run_tests.py --data -n 2
- uses: ./.github/actions/upload-artifacts
if: always()
with:
prefix: Data Integrations