forked from Breakthrough/PySceneDetect
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (33 loc) · 1022 Bytes
/
check-code-format.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
# Use YAPF to format PySceneDetect.
name: Check Code Format
on:
pull_request:
paths:
- scenedetect/**
- tests/**
push:
paths:
- scenedetect/**
- tests/**
jobs:
check_format:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: '3.11'
cache: 'pip'
- name: Update pip
run: python -m pip install --upgrade pip
- name: Install yapf
run: python -m pip install --upgrade yapf toml
- name: Install Binary Dependencies
run: python -m pip install av opencv-python-headless --only-binary ":all:"
- name: Install Remaining Dependencies
run: python -m pip install -r requirements_headless.txt
- name: Check Code Format (scenedetect)
run: python -m yapf --diff --recursive scenedetect/
- name: Check Code Format (tests)
run: python -m yapf --diff --recursive tests/