Skip to content

ci(workflows): upgrade actions #940

ci(workflows): upgrade actions

ci(workflows): upgrade actions #940

Workflow file for this run

name: Code format and style check
on:
push:
branches:
- master
pull_request:
jobs:
black:
runs-on: ubuntu-latest
name: Black code formatter
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Check code format
uses: psf/[email protected] # already includes args "--check --diff"
flake8:
runs-on: ubuntu-latest
name: Flake8 linter
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade wheel pip
pip install .[lint]
- name: Lint examples
run: flake8 examples --show-source
- name: Lint scripts
run: flake8 setup.py docs/conf.py scripts --show-source
- name: Lint tests
run: flake8 tests --show-source
- name: Lint moviepy
run: flake8 moviepy --show-source
isort:
runs-on: ubuntu-latest
name: isort import sorter
steps:
- uses: actions/[email protected]
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install isort
- name: Check import order
run: isort --check-only moviepy tests examples docs/conf.py scripts