mirror of
https://github.com/pmret/papermario.git
synced 2024-11-18 08:52:40 +01:00
25 lines
538 B
YAML
25 lines
538 B
YAML
|
name: Python Formatting & Linting
|
||
|
on:
|
||
|
pull_request:
|
||
|
|
||
|
jobs:
|
||
|
py_format:
|
||
|
name: black formatting
|
||
|
runs-on: ubuntu-latest
|
||
|
steps:
|
||
|
- name: Checkout
|
||
|
uses: actions/checkout@v2
|
||
|
with:
|
||
|
fetch-depth: 0
|
||
|
- name: Set up Python 3.8
|
||
|
uses: actions/setup-python@v2
|
||
|
with:
|
||
|
python-version: 3.8
|
||
|
- name: Install dependencies
|
||
|
run: |
|
||
|
python -m pip install --upgrade pip
|
||
|
pip install black
|
||
|
- name: Run black
|
||
|
run: |
|
||
|
black . --check
|