-
Notifications
You must be signed in to change notification settings - Fork 64
188 lines (176 loc) · 5.94 KB
/
e2e.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
name: e2e
on:
workflow_call:
inputs:
neptune_ref:
description: 'Reference to neptune-client branch to use while running e2e tests (can be a branch, tag, or commit SHA)'
type: string
required: false
workflow_dispatch:
push:
branches:
- dev/1.x
env:
WORKSPACE_NAME: ${{ vars.E2E_WORKSPACE_NAME }}
BUCKET_NAME: ${{ secrets.E2E_BUCKET_NAME }}
USER_USERNAME: ${{ vars.E2E_USER_USERNAME }}
ADMIN_USERNAME: ${{ vars.E2E_ADMIN_USERNAME }}
ADMIN_NEPTUNE_API_TOKEN: ${{ secrets.E2E_ADMIN_NEPTUNE_API_TOKEN }}
SERVICE_ACCOUNT_NAME: ${{ vars.E2E_SERVICE_ACCOUNT_NAME }}
jobs:
set_neptune_ref:
uses: ./.github/workflows/set-neptune-ref.yml
with:
workflow_call_input_neptune_ref: ${{ inputs.neptune_ref }}
e2e:
environment: "Production 1.x"
needs: [ set_neptune_ref ]
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.12" ]
os: [ ubuntu, windows ]
include:
- python-version: "3.8"
os: macos
- python-version: "3.12"
os: macos
runs-on: ${{ matrix.os }}-latest
name: 'standard (${{ matrix.os }} - py${{ matrix.python-version }})'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}
- name: Test
uses: ./.github/actions/test-e2e
env:
NEPTUNE_API_TOKEN: ${{ secrets.E2E_SERVICE_ACCOUNT_API_TOKEN }}
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
module: "not s3 and not integrations"
name: "standard"
report_job: 'standard (${{ matrix.os }} - py${{ matrix.python-version }})'
codecov-token: ${{ secrets.CODECOV_TOKEN }}
e2e_management:
environment: "Production 1.x"
needs: [ set_neptune_ref ]
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.12" ]
os: [ ubuntu, windows ]
include:
- python-version: "3.8"
os: macos
- python-version: "3.12"
os: macos
runs-on: ${{ matrix.os }}-latest
name: 'management (${{ matrix.os }} - py${{ matrix.python-version }})'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}
- name: Test
uses: ./.github/actions/test-e2e
env:
NEPTUNE_API_TOKEN: ${{ secrets.E2E_USER_API_TOKEN }}
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
module: management
name: management
report_job: 'management (${{ matrix.os }} - py${{ matrix.python-version }})'
codecov-token: ${{ secrets.CODECOV_TOKEN }}
e2e_s3_gcs:
environment: "Production 1.x"
needs: [ set_neptune_ref ]
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.12" ]
os: [ ubuntu, windows ]
include:
- python-version: "3.8"
os: macos
- python-version: "3.12"
os: macos
runs-on: ${{ matrix.os }}-latest
name: 's3-gcs (${{ matrix.os }} - py${{ matrix.python-version }})'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}
- name: Test
uses: ./.github/actions/test-e2e
env:
NEPTUNE_API_TOKEN: ${{ secrets.E2E_SERVICE_ACCOUNT_API_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.E2E_GCS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.E2E_GCS_SECRET_ACCESS_KEY }}
S3_ENDPOINT_URL: "https://storage.googleapis.com/"
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
module: s3
name: s3-gcs
report_job: 's3-gcs (${{ matrix.os }} - py${{ matrix.python-version }})'
codecov-token: ${{ secrets.CODECOV_TOKEN }}
e2e_s3:
environment: "Production 1.x"
needs: [ set_neptune_ref ]
timeout-minutes: 75
strategy:
fail-fast: false
matrix:
python-version: [ "3.7", "3.12" ]
os: [ ubuntu, windows ]
include:
- python-version: "3.8"
os: macos
- python-version: "3.12"
os: macos
runs-on: ${{ matrix.os }}-latest
name: 's3 (${{ matrix.os }} - py${{ matrix.python-version }})'
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}
- name: Test
uses: ./.github/actions/test-e2e
env:
NEPTUNE_API_TOKEN: ${{ secrets.E2E_SERVICE_ACCOUNT_API_TOKEN }}
AWS_ACCESS_KEY_ID: ${{ secrets.E2E_AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.E2E_AWS_SECRET_ACCESS_KEY }}
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}
module: s3
name: s3
report_job: 's3 (${{ matrix.os }} - py${{ matrix.python-version }})'
codecov-token: ${{ secrets.CODECOV_TOKEN }}
e2e-tests-notify:
needs: [ e2e, e2e_management, e2e_s3_gcs, e2e_s3, set_neptune_ref ]
runs-on: ubuntu-latest
if: (success() || failure()) && (github.event_name == 'push' || github.event_name == 'schedule')
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}
- name: Notify
uses: ./.github/actions/workflow-notify-v2
with:
slack-webhook: ${{ secrets.E2E_REGULAR_SLACK_WEBHOOK }}
neptune-ref: ${{ needs.set_neptune_ref.outputs.neptune_ref }}