-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
35 lines (28 loc) · 1.03 KB
/
codeowners-coverage.yml
File metadata and controls
35 lines (28 loc) · 1.03 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
name: CODEOWNERS Coverage
on:
# TODO: We don't want master builds to fail when we merge this in.
# We can turn it on once every PR has enforced it for a couple days.
# push:
# branches:
# - master
# pull_request:
workflow_dispatch:
# Cancel in progress workflows on pull_requests.
# https://docs.github.com/en/actions/using-jobs/using-concurrency#example-using-a-fallback-value
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
check-coverage:
name: codeowners coverage check
runs-on: ubuntu-24.04
timeout-minutes: 5
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
with:
python-version: '3.11'
- name: Install codeowners-coverage
run: pip install codeowners-coverage==0.3.1
- name: Run CODEOWNERS coverage check
run: codeowners-coverage check --allow-dirty-baseline