forked from ob-f/OpenBot
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (32 loc) · 764 Bytes
/
python.yml
File metadata and controls
35 lines (32 loc) · 764 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
32
33
34
35
# This workflow will check the python code using black
name: Python style check
on:
push:
branches: [ master ]
paths:
- 'controller/**'
- 'policy/**'
- '.github/workflows/python.yml'
pull_request:
branches: [ master ]
paths:
- 'controller/**'
- 'policy/**'
- '.github/workflows/python.yml'
jobs:
style-check:
name: Python style check
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Set up python
uses: actions/setup-python@v2
with:
python-version: 3.7
- name: Install dependencies
run: |
python -m pip install 'black[jupyter]'
- name: Check style
run: |
black --check .