File tree Expand file tree Collapse file tree 3 files changed +57
-59
lines changed Expand file tree Collapse file tree 3 files changed +57
-59
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 5
5
branches :
6
6
- master
7
7
8
+ concurrency :
9
+ group : unit-${{ github.head_ref }}
10
+ cancel-in-progress : true
11
+
8
12
jobs :
9
13
pre-commit :
10
14
runs-on : ubuntu-latest
Original file line number Diff line number Diff line change
1
+ name : Run Integration Tests
2
+
3
+ on :
4
+ pull_request :
5
+ branches :
6
+ - master
7
+ schedule :
8
+ - cron : " 0 1 * * *"
9
+
10
+ concurrency :
11
+ group : integration-${{ github.head_ref }}
12
+ cancel-in-progress : true
13
+
14
+ jobs :
15
+ test_integration :
16
+ runs-on : ubuntu-latest
17
+ if : >
18
+ github.event.pull_request.draft == false &&
19
+ !contains(github.event.pull_request.labels.*.name, 'ci/skip') &&
20
+ !contains(github.event.pull_request.head.ref, 'datadog-api-spec/test/') &&
21
+ contains(github.event.pull_request.labels.*.name, 'ci/integrations')
22
+ services :
23
+ datadog-agent :
24
+ image : datadog/agent:latest
25
+ ports :
26
+ - 8126:8126
27
+ env :
28
+ DD_API_KEY : ${{ secrets.DD_API_KEY }}
29
+ DD_HOSTNAME : " none"
30
+ DD_INSIDE_CI : " true"
31
+ steps :
32
+ - uses : actions/checkout@v2
33
+ - name : Set up Python 3.8
34
+ uses : actions/setup-python@v2
35
+ with :
36
+ python-version : 3.8
37
+ - name : Install
38
+ run : pip install --disable-pip-version-check -e .[apm,tests]
39
+ - name : Test
40
+ run : ./run-tests.sh
41
+ shell : bash
42
+ env :
43
+ CI : " true"
44
+ DD_AGENT_HOST : datadog-agent
45
+ DD_ENV : prod
46
+ DD_SERVICE : datadog-api-client-python
47
+ DD_TAGS : " team:integration-tools-and-libraries"
48
+ DD_TEST_CLIENT_API_KEY : ${{ secrets.DD_CLIENT_API_KEY }}
49
+ DD_TEST_CLIENT_APP_KEY : ${{ secrets.DD_CLIENT_APP_KEY }}
50
+ DD_TRACE_ANALYTICS_ENABLED : " true"
51
+ RECORD : " none"
52
+ PYTEST_ADDOPTS : " --ddtrace"
53
+ DD_PYTEST_OPERATION_NAME : " test"
You can’t perform that action at this time.
0 commit comments