Document installed packages in ci_cd workflow #4
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
name: Code Style | |
on: | |
push: | |
branches: [ "**" ] | |
tags-ignore: [ "**" ] | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
black: | |
name: black | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🔀 Checkout repository" | |
uses: actions/checkout@v2 | |
- name: '🐍 Initialize Python' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
- name: "📝 Black Code Formatter" | |
uses: psf/black@stable | |
with: | |
options: --check --diff --color | |
isort: | |
name: isort | |
runs-on: ubuntu-latest | |
steps: | |
- name: "🔀 Checkout repository" | |
uses: actions/checkout@v2 | |
- name: '🐍 Initialize Python' | |
uses: actions/setup-python@v2 | |
with: | |
python-version: "3.8" | |
# Workaround for https://github.com/isort/isort-action/issues/70 | |
- run: pip install colorama | |
- name: "📝 isort" | |
uses: isort/isort-action@master | |
with: | |
configuration: --check --diff --color |