File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -3,29 +3,32 @@ name: Bookinn-app workflow
33on : [push]
44
55jobs :
6- tests :
7- runs-on : ubuntu-latest
8-
9- steps :
10- - uses : actions/checkout@v2
11- - name : Set up Python
12- uses : actions/setup-python@v2
13- with :
14- python-version : 3.9
15- - name : Install dependencies
16- run : |
17- python -m pip install --upgrade pip
18- pip install black flake8 flake8-isort
19- pip install -r requirements.txt
20-
21- - name : Test with black
22- run : |
23- python -m black
24-
25- - name : Test with flake8-isort
26- run : |
27- python -m isort
28-
29- - name : Test with flake8
30- run : |
31- python -m flake8
6+ lint :
7+ runs-on : ubuntu-latest
8+
9+ steps :
10+ - name : Checkout code
11+ uses : actions/checkout@v4
12+
13+ - name : Set up Python
14+ uses : actions/setup-python@v4
15+ with :
16+ python-version : 3.9
17+
18+ - name : Install dependencies
19+ run : |
20+ python -m pip install --upgrade pip
21+ pip install black flake8 flake8-isort
22+ pip install -r requirements.txt
23+
24+ - name : Test with black (check only)
25+ run : |
26+ python -m black . --check
27+
28+ - name : Test with flake8-isort (check only)
29+ run : |
30+ python -m isort . --check-only
31+
32+ - name : Test with flake8
33+ run : |
34+ flake8 . --count --statistics --show-source
You can’t perform that action at this time.
0 commit comments