From 67e5202ec0852eb08021623644a702a999c9fc3d Mon Sep 17 00:00:00 2001 From: WyattBlue Date: Sun, 1 Jan 2023 03:17:17 -0500 Subject: [PATCH] Upgrade workflow, get ffmpeg from apt --- .github/workflows/python-package.yml | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 4a3c8a3..73a5db5 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -1,7 +1,4 @@ -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions -# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions - -name: Python package +name: Test Package on: push: @@ -11,32 +8,35 @@ on: jobs: build: - runs-on: ubuntu-latest strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11"] steps: - - uses: actions/checkout@v2 - - uses: FedericoCarboni/setup-ffmpeg@v1 - id: setup-ffmpeg + - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} + - name: Install ffmpeg + run: | + sudo apt install ffmpeg - name: Install dependencies run: | python -m pip install --upgrade pip - pip install flake8 - if [ -f requirements.txt ]; then pip install -r requirements.txt; fi - if [ -f requirements.dev.txt ]; then pip install -r requirements.dev.txt; fi + pip install flake8 mypy==0.991 types-tqdm + pip install -r requirements.txt + pip install -r requirements.dev.txt - name: Lint with flake8 run: | # 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-line-length=127 --ignore=W503,W504,C901 + - name: Type check with mypy + run: | + mypy ffmpeg_normalize - name: Test with pytest run: | pytest test/test.py