-
Notifications
You must be signed in to change notification settings - Fork 6
52 lines (47 loc) · 1.79 KB
/
pythonapp.yml
File metadata and controls
52 lines (47 loc) · 1.79 KB
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
40
41
42
43
44
45
46
47
48
49
50
51
52
name: Python Checking
on: [push, pull_request]
jobs:
analyze:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.8
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install Common dependencies
run: |
python -m pip install --upgrade pip
cd common_scripts
pip install .
- name: Install Module dependencies
run: |
pip install -r km/scripts/requirements.txt
pip install -r contract/scripts/requirements.txt
pip install -r worker/scripts/requirements.txt
pip install -r worker/scripts/cli/requirements.txt
pip install -r client/scripts/requirements.txt
pip install -r salad/client/scripts/requirements.txt
pip install -r salad/operator/scripts/requirements.txt
- name: Lint with flake8
run: |
pip install flake8
flake8 --exclude __init__.py --count --max-complexity=10 --max-line-length=127 --statistics ./salad/operator/scripts/ ./salad/client/scripts/ ./common_scripts/enigma_docker_common/ ./km/scripts/ ./contract/scripts/ ./client/scripts/ ./worker/scripts/
- name: Lint with pylint
run: |
pip install pylint
pylint --rcfile .pylintrc ./salad/operator/scripts/ ./salad/client/scripts/ ./common_scripts/enigma_docker_common/ ./km/scripts/ ./contract/scripts/ ./client/scripts/ ./worker/scripts/
- name: Typecheck with mypy
run: |
pip install mypy
mypy ./common_scripts/enigma_docker_common/
mypy ./km/scripts
mypy ./contract/scripts
mypy ./client/scripts
mypy ./worker/scripts
mypy ./salad/operator/scripts
mypy ./salad/client/scripts
- name: Safety Check
run: |
pip install safety
safety check