-
Notifications
You must be signed in to change notification settings - Fork 61
/
action.yml
133 lines (120 loc) 路 4.38 KB
/
action.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
---
name: Test E2E
description: Check client against production API
inputs:
sa-api-token:
description: "Api token for service account"
required: true
user-api-token:
description: "Api token for regular user"
required: true
aws-access-key-id:
description: "S3 access key for AWS service"
required: true
aws-secret-access-key:
description: "S3 access key for AWS service"
required: true
gcs-access-key-id:
description: "S3 access key for GCS service"
required: true
gcs-secret-access-key:
description: "S3 access key for GCS service"
required: true
runs:
using: "composite"
steps:
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install ".[dev,e2e]"
shell: bash
- name: List dependencies
run: |
pip list
shell: bash
- name: E2E - Service Accounts
env:
NEPTUNE_API_TOKEN: ${{ inputs.sa-api-token }}
run: |
pytest -v ./e2e_tests -m "not s3 and not integrations" \
--timeout=600 --timeout_method=thread \
--junitxml="./test-results/test-e2e-base-${{ matrix.os }}-${{ matrix.python-version }}.xml"
shell: bash
- name: E2E - AWS S3
env:
NEPTUNE_API_TOKEN: ${{ inputs.sa-api-token }}
AWS_ACCESS_KEY_ID: ${{ inputs.aws-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.aws-secret-access-key }}
run: |
pytest -v ./e2e_tests -m s3 \
--timeout=600 --timeout_method=thread \
--junitxml="./test-results/test-e2e-s3-aws-${{ matrix.os }}-${{ matrix.python-version }}.xml"
shell: bash
- name: E2E - GCS S3
env:
NEPTUNE_API_TOKEN: ${{ inputs.sa-api-token }}
AWS_ACCESS_KEY_ID: ${{ inputs.gcs-access-key-id }}
AWS_SECRET_ACCESS_KEY: ${{ inputs.gcs-secret-access-key }}
S3_ENDPOINT_URL: "https://storage.googleapis.com/"
run: |
pytest -v ./e2e_tests -m s3 \
--timeout=600 --timeout_method=thread \
--junitxml="./test-results/test-e2e-s3-gcs-${{ matrix.os }}-${{ matrix.python-version }}.xml"
shell: bash
- name: E2E - Management (as regular user)
env:
NEPTUNE_API_TOKEN: ${{ inputs.user-api-token }}
run: |
pytest -v ./e2e_tests -m management \
--timeout=600 --timeout_method=thread \
--junitxml="./test-results/test-e2e-management-${{ matrix.os }}-${{ matrix.python-version }}.xml"
shell: bash
- name: E2E - Integrations
env:
NEPTUNE_API_TOKEN: ${{ inputs.sa-api-token }}
run: |
pytest -v ./e2e_tests -m integrations \
--timeout=600 --timeout_method=thread \
--junitxml="./test-results/test-e2e-integrations-${{ matrix.os }}-${{ matrix.python-version }}.xml"
shell: bash
- name: Test Fast.ai integration
uses: neptune-ai/neptune-fastai/.github/actions/e2e@master
with:
working_directory: neptune_fastai
env:
NEPTUNE_API_TOKEN: ${{ inputs.user-api-token}}
NEPTUNE_PROJECT: e2e-tests/e2e
# Disable due to further investigation
# - name: Test Kedro integration
# uses: neptune-ai/kedro-neptune/.github/actions/e2e@main
# with:
# working_directory: neptune_kedro
# env:
# NEPTUNE_API_TOKEN: ${{ inputs.user-api-token}}
# NEPTUNE_PROJECT: e2e-tests/kedro-neptune-e2e
- name: Test Prophet integration
uses: neptune-ai/neptune-prophet/.github/actions/e2e@main
with:
working_directory: neptune_prophet
env:
NEPTUNE_API_TOKEN: ${{ inputs.user-api-token}}
NEPTUNE_PROJECT: e2e-tests/e2e
- name: Test Keras integration
uses: neptune-ai/neptune-tensorflow-keras/.github/actions/e2e@master
with:
working_directory: neptune_keras
env:
NEPTUNE_API_TOKEN: ${{ inputs.user-api-token}}
NEPTUNE_PROJECT: e2e-tests/e2e
- name: Display test artifacts
if: always()
run: ls -R ./test-results
shell: bash
- uses: actions/upload-artifact@v2
if: always()
with:
name: test-artifacts
path: ./test-results