-
Notifications
You must be signed in to change notification settings - Fork 1.5k
100 lines (85 loc) · 2.62 KB
/
master-windows.yml
File metadata and controls
100 lines (85 loc) · 2.62 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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
name: Master Windows
# This is a temporary fix to avoid hitting the max 256 jobs per workflow limit
# We will remove this once we have a better solution
on:
push:
branches:
- master
paths:
# List of files/paths that should trigger the run. The intention is to avoid running all tests if the commit only includes changes on assets or README
- '*/datadog_checks/**'
- '*/tests/**'
- 'ddev'
- 'datadog_check_base'
- 'datadog_checks_dev'
# Contains overrides for testing
- '.ddev'
# Want to ensure any change in workflows is validated
- '.github/workflows/**'
# Test matrices and dependencies
- '*/hatch.toml'
- '*/pyproject.toml'
# Some integrations might use this file to validate metrics emission
- '*/metadata.csv'
# In case some linting formatting config has changed
- 'pyproject.toml'
schedule:
- cron: '0 2 * * *'
jobs:
cache:
uses: ./.github/workflows/cache-shared-deps.yml
test:
needs:
- cache
uses: ./.github/workflows/test-all-windows.yml
with:
repo: core
# Options
# Because -m starts with a dash,
# click (the library used to build the CLI) will
# interpret it as an option, not as an argument.
# To avoid this, using -- syntax,
# which tells the command that everything following it
# should be treated as positional arguments, not options
pytest-args: '-m "not flaky"'
secrets: inherit
permissions:
# needed for compute-matrix in test-target.yml
contents: read
publish-test-results:
needs:
- test
if: success() || failure()
concurrency:
group: test-results
permissions:
checks: write
pull-requests: write
contents: write
uses: ./.github/workflows/test-results-master.yml
secrets: inherit
upload-coverage:
needs:
- test
if: >
!github.event.repository.private &&
(success() || failure())
runs-on: ubuntu-latest
permissions:
# needed for codecov, allows the action to get a JWT signed by Github
id-token: write
contents: read
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Download all coverage artifacts
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
with:
pattern: coverage-*
path: coverage-reports
merge-multiple: false
- name: Upload coverage to Codecov
uses: codecov/codecov-action@671740ac38dd9b0130fbe1cec585b89eea48d3de
with:
use_oidc: true
directory: coverage-reports
fail_ci_if_error: false