-
Notifications
You must be signed in to change notification settings - Fork 4
31 lines (26 loc) · 822 Bytes
/
code-format.yml
File metadata and controls
31 lines (26 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# Taken from pl-bolts.
# https://github.com/PyTorchLightning/pytorch-lightning-bolts/blob/master/.github/workflows/code-format.yml
name: Check Code formatting
# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows
on: # Trigger the workflow on push or pull request, but only for the master branch
push:
branches: [master]
pull_request:
branches: [master]
jobs:
flake8:
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@master
- uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
# python -m pip install --upgrade --user pip
pip install flake8
pip --version
shell: bash
- name: Flake8 Code Formatting
run: |
flake8 .