[scene_manager] Fix warning when using timecode strings for duration/… #333
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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/ |