ffplayout/.github/workflows/pythonapp.yml

32 lines
873 B
YAML
Raw Normal View History

2019-11-14 05:09:37 -05:00
name: Python application
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
2021-05-28 08:12:26 -04:00
- name: Set up Python 3.9
2019-11-14 05:09:37 -05:00
uses: actions/setup-python@v1
with:
2021-05-28 08:12:26 -04:00
python-version: 3.9
2019-11-14 05:09:37 -05:00
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
run: |
pip install flake8
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
2021-05-28 08:09:13 -04:00
- name: Test with pytest
run: |
2021-05-28 08:37:06 -04:00
apt install ffmpeg
2021-05-28 08:09:13 -04:00
pip install pytest
pytest