-
Notifications
You must be signed in to change notification settings - Fork 1.5k
77 lines (65 loc) · 2.16 KB
/
Copy pathpr-all.yml
File metadata and controls
77 lines (65 loc) · 2.16 KB
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
name: PR All
on:
pull_request:
paths:
- datadog_checks_base/datadog_checks/**
- datadog_checks_base/pyproject.toml
- datadog_checks_dev/datadog_checks/dev/*.py
- datadog_checks_dev/pyproject.toml
- ddev/src/**
- ddev/pyproject.toml
- "!agent_requirements.in"
# Also run if we modify the workflow files
- ".github/workflows/pr-all.yml"
- ".github/workflows/test-target.yml"
- ".github/workflows/test-all.yml"
# Also run if the action to install test-target scripts changes
- ".github/actions/setup-test-target-scripts/**"
- ".github/actions/setup-ddev/**"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.head_ref }}
cancel-in-progress: true
jobs:
test:
uses: ./.github/workflows/test-all.yml
permissions:
# needed for compute-matrix in test-target.yml
contents: read
with:
repo: core
context: "pr"
# Avoid running flaky tests since the intention of running everything in these
# prs is to ensure that tests can be run sucessfully. Reporting failed flaky tests
# does not provide much value.
pytest-args: '-m "not flaky"'
secrets: inherit
save-event:
needs:
- test
if: success() || failure()
uses: ./.github/workflows/save-event.yml
upload-coverage:
needs:
- test
if: >
!github.event.repository.private &&
(success() || failure())
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download all coverage artifacts
uses: actions/download-artifact@70fc10c6e5e1ce46ad2ea6f2b72d43f7d47b13c3 # v8.0.0
with:
pattern: coverage-*
path: coverage-reports
merge-multiple: false
- name: Upload coverage to Datadog
if: always()
continue-on-error: true
uses: DataDog/coverage-upload-github-action@6c4bd935248daa6f0ef94e3e6ba71ad5ad079998 # v1.0.3
with:
api_key: ${{ secrets.DD_API_KEY }}
files: coverage-reports
format: cobertura