Skip to content

Commit

Permalink
style(workflows): update name values, formatting, comments
Browse files Browse the repository at this point in the history
  • Loading branch information
keikoro committed May 24, 2024
1 parent 80a56c9 commit 34721c4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 16 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
# For most projects, this workflow file will not need changing; you simply need
# to commit it to your repository.
#
# You may wish to alter this file to override the set of languages analyzed,
# or to provide custom queries or build logic.
name: "CodeQL"
name: Code scanning with CodeQL

on:
push:
Expand All @@ -18,7 +13,6 @@ jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest

strategy:
fail-fast: false
matrix:
Expand Down
13 changes: 7 additions & 6 deletions .github/workflows/format_check.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Code Format Check
name: Code format and style check

on:
push:
Expand All @@ -10,7 +10,7 @@ on:
jobs:
black:
runs-on: ubuntu-latest
name: Black
name: Black code formatter
steps:
- uses: actions/[email protected]
with:
Expand All @@ -19,12 +19,12 @@ jobs:
uses: actions/[email protected]
with:
python-version: '3.9'
- name: Black
- name: Check code format
uses: psf/[email protected] # already includes args "--check --diff"

flake8:
runs-on: ubuntu-latest
name: Flake8
name: Flake8 linter
steps:
- uses: actions/[email protected]
with:
Expand All @@ -45,9 +45,10 @@ jobs:
run: flake8 tests --show-source
- name: Lint moviepy
run: flake8 moviepy --show-source

isort:
runs-on: ubuntu-latest
name: isort
name: isort import sorter
steps:
- uses: actions/[email protected]
with:
Expand All @@ -60,5 +61,5 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install isort
- name: Check imports
- name: Check import order
run: isort --check-only moviepy tests examples docs/conf.py scripts
12 changes: 9 additions & 3 deletions .github/workflows/test_suite.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# 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
# This workflow installs Python dependencies, runs tests and lints
# using a variety of Python versions.
# For more information see:
# https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Run Test Suite

Expand All @@ -10,7 +12,7 @@ on:
pull_request:

jobs:
# Uses Python Framework build because on macos matplotlib requires it
# Uses Python Framework build because on macOS matplotlib requires it
macos:
runs-on: macos-latest
strategy:
Expand All @@ -21,15 +23,18 @@ jobs:
- uses: s-weigand/setup-conda@v1
with:
activate-conda: true

- name: Install pythonw
run: conda install python.app

- name: Python Version Info
run: |
pythonw --version
which python
pythonw -m site --user-site
echo $PYTHONPATH
echo $PYTHONHOME
- name: Install dependencies
run: |
brew install imagemagick
Expand Down Expand Up @@ -122,6 +127,7 @@ jobs:
fail-fast: false
steps:
- uses: actions/[email protected]

- name: Set up Python ${{ matrix.python-version }}
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 34721c4

Please sign in to comment.