-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
style(workflows): update name values, formatting, comments
- Loading branch information
Showing
3 changed files
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: | ||
|
@@ -10,7 +10,7 @@ on: | |
jobs: | ||
black: | ||
runs-on: ubuntu-latest | ||
name: Black | ||
name: Black code formatter | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
|
@@ -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: | ||
|
@@ -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: | ||
|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|
||
|
@@ -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: | ||
|
@@ -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 | ||
|
@@ -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: | ||
|