Skip to content

Commit 08d2bb2

Browse files
committed
test with black isort flake8
1 parent 2df3105 commit 08d2bb2

1 file changed

Lines changed: 29 additions & 26 deletions

File tree

.github/workflows/main.yml

Lines changed: 29 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -3,29 +3,32 @@ name: Bookinn-app workflow
33
on: [push]
44

55
jobs:
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

0 commit comments

Comments
 (0)