-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (29 loc) · 925 Bytes
/
python-ci.yml
File metadata and controls
36 lines (29 loc) · 925 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
36
name: Python CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main ]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Install dependencies
working-directory: ./visualization
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install flake8 black
- name: Lint with flake8
working-directory: ./visualization
run: |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --filename visualize.py
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics --filename visualize.py
- name: Check formatting with black
working-directory: ./visualization
run: black --check .