datahub/.github/workflows/code-checks.yml
dependabot[bot] becfe19fee
chore(deps): bump actions/setup-python from 5 to 6 (#14701)
Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: david-leifker <114954101+david-leifker@users.noreply.github.com>
2025-09-12 12:11:28 -05:00

41 lines
1.0 KiB
YAML

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:
- "**"
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: acryldata/sane-checkout-action@v4
- uses: actions/setup-python@v6
with:
python-version: "3.10"
- name: run check ${{ matrix.command }}
run: |-
python .github/scripts/${{ matrix.command }}