forked from lithops-cloud/lithops
-
Notifications
You must be signed in to change notification settings - Fork 1
39 lines (30 loc) · 814 Bytes
/
python-linting.yml
File metadata and controls
39 lines (30 loc) · 814 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
37
38
39
name: Python Linting
on:
pull_request:
branches:
- master
paths:
- 'setup.py'
- 'lithops/**'
workflow_dispatch:
# this allows to run the workflow manually through the github dashboard
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Clone Lithops repository
uses: actions/checkout@v4
- name: Install Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip3 install -U flake8
- name: Install Lithops
run: |
pip3 install -U .
- name: Lint with flake8
run: |
flake8 lithops --count --max-line-length=180 --statistics --ignore W605,W503