Merge branch 'main' into develop #165
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 check DVR-Scan formatting (run `yapf -i -r dvr_scan tests` locally to fix) | |
name: Check Code Format | |
on: | |
pull_request: | |
paths: | |
- .style.yapf | |
- dvr_scan/** | |
- tests/** | |
push: | |
paths: | |
- .style.yapf | |
- dvr_scan/** | |
- tests/** | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.x | |
uses: actions/setup-python@v3 | |
with: | |
python-version: '3.x' | |
- name: Update pip | |
run: python -m pip install --upgrade pip | |
- name: Install yapf | |
run: python -m pip install --upgrade yapf toml | |
- name: Install DVR-Scan Dependencies | |
run: python -m pip install -r requirements_headless.txt | |
- name: Check Code Format (dvr_scan) | |
run: python -m yapf --diff --recursive dvr_scan/ | |
- name: Check Code Format (tests) | |
run: python -m yapf --diff --recursive tests/ |