Skip to content

Update dependencies and GitHub Workflows #287

Update dependencies and GitHub Workflows

Update dependencies and GitHub Workflows #287

Workflow file for this run

name: ci
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-22.04
strategy:
matrix:
include:
# this is a matrix of all supported VapourSynth versions
- python-version: '3.9'
vapoursynth-version: '55'
- python-version: '3.9'
vapoursynth-version: '56'
- python-version: '3.9'
vapoursynth-version: '57'
- python-version: '3.10'
vapoursynth-version: '58'
- python-version: '3.10'
vapoursynth-version: '59'
- python-version: '3.10'
vapoursynth-version: '60'
- python-version: '3.10'
vapoursynth-version: '61'
- python-version: '3.11'
vapoursynth-version: '62'
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install VapourSynth R${{ matrix.vapoursynth-version }}
uses: rlaphoenix/[email protected]
with:
version: ${{ matrix.vapoursynth-version }}
cache: true
- name: Install Poetry
uses: abatilo/actions-poetry@v2
- name: Install project
run: poetry install --no-dev
- name: Install flake8 and isort
run: python -m pip install flake8 isort
- 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-complexity=10 --statistics
- name: Check import order with isort
run: isort --check-only --diff .
- name: Build project
run: poetry build