forked from openvinotoolkit/openvino.genai
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 829 Bytes
/
lint.yml
File metadata and controls
40 lines (33 loc) · 829 Bytes
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
name: Lint
on:
pull_request:
branches:
- master
push:
branches:
- master
permissions: read-all
env:
OV_BRANCH: master
jobs:
lint:
name: Lint Changed Files
runs-on: ubuntu-latest
timeout-minutes: 30
defaults:
run:
shell: bash
steps:
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 0
submodules: recursive
- name: Set up Python
uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
with:
python-version: "3.10"
- name: Run pre-commit on changed files
uses: pre-commit/action@v3.0.1
with:
extra_args: --from-ref origin/${{ github.base_ref || 'master' }} --to-ref HEAD