File tree Expand file tree Collapse file tree 4 files changed +235
-146
lines changed Expand file tree Collapse file tree 4 files changed +235
-146
lines changed Original file line number Diff line number Diff line change 8
8
steps :
9
9
- name : Checkout master branch
10
10
uses : actions/checkout@v3
11
+ - uses : actions/setup-python@v4
12
+ with :
13
+ python-version : ' 3.10'
14
+ - name : Install dependencies
15
+ run : python3 -m pip install -r docker/requirements.txt
16
+ - name : Install opengrok-tools
17
+ run : python3 setup.py install
18
+ working-directory : tools
19
+ - name : Install checkers
20
+ run : python3 -m pip install pylint flake8 black isort
21
+ - name : Run flake8
22
+ run : flake8 --max-line-length 119 docker/*.py
23
+ - name : Run pylint
24
+ run : pylint -E --max-line-length 119 docker/*.py
25
+ - name : Run black in check mode
26
+ run : black --check docker/*.py
27
+ - name : Run isort in check mode
28
+ run : isort --settings-file docker/.isort.cfg docker/*.py --check --diff
11
29
- name : Build and optionally push Docker image
12
30
env :
13
31
DOCKER_USERNAME : ${{ secrets.DOCKER_USERNAME }}
16
34
OPENGROK_PULL_REQUEST : ${{ github.head_ref }}
17
35
OPENGROK_REF : ${{ github.ref }}
18
36
run : ./dev/docker.sh
19
- - uses : actions/setup-python@v4
20
- with :
21
- python-version : ' 3.10'
22
37
- name : Install Python pre-requisites
23
38
run : python3 -m pip install requests
24
39
- name : Optionally update README on Docker hub
Original file line number Diff line number Diff line change
1
+ [settings]
2
+ profile = black
Original file line number Diff line number Diff line change
1
+ flask
2
+ flask_httpauth
3
+ waitress
4
+ requests
You can’t perform that action at this time.
0 commit comments