-
Notifications
You must be signed in to change notification settings - Fork 2.9k
47 lines (44 loc) · 1.11 KB
/
code-checks.yml
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
name: code check
on:
push:
branches:
- master
paths:
- "metadata-io/**"
- "datahub-web-react/**"
- "metadata-service/war/src/main/resources/boot/policies.json"
- ".github/workflows/code-checks.yml"
pull_request:
branches:
- master
paths:
- "metadata-io/**"
- "datahub-web-react/**"
- "metadata-service/war/src/main/resources/boot/policies.json"
- ".github/workflows/code-checks.yml"
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
code_check:
strategy:
fail-fast: false
matrix:
command:
[
"check_event_type.py",
"check_policies.py"
]
name: run code checks
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: run check ${{ matrix.command }}
run: |
python .github/scripts/${{ matrix.command }}