Skip to content

Merge pull request #78 from souzatharsis/souzatharsis-patch-1 #11

Merge pull request #78 from souzatharsis/souzatharsis-patch-1

Merge pull request #78 from souzatharsis/souzatharsis-patch-1 #11

Workflow file for this run

name: Pytest
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v3
with:
python-version: "3.11"
- name: Install FFmpeg 6.1.1-3
run: |
sudo add-apt-repository ppa:savoury1/ffmpeg6
sudo apt-get update
sudo apt-get install -y ffmpeg=6.1.1-3~jammy
- name: Check FFmpeg version
run: ffmpeg -version
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
flake8 . --count --select=E