Skip to content

Commit 0d9290b

Browse files
authored
Replace AZP with github actions (#451)
1 parent 3cdf9c4 commit 0d9290b

File tree

3 files changed

+57
-59
lines changed

3 files changed

+57
-59
lines changed

.azure-pipelines/all.yml

Lines changed: 0 additions & 59 deletions
This file was deleted.

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
branches:
66
- master
77

8+
concurrency:
9+
group: unit-${{ github.head_ref }}
10+
cancel-in-progress: true
11+
812
jobs:
913
pre-commit:
1014
runs-on: ubuntu-latest
Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,53 @@
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"

0 commit comments

Comments
 (0)