Skip to content

Commit 2d7ee96

Browse files
author
Ankush Pala [email protected]
committed
Add Lint check to ci/cd
1 parent 3d1326f commit 2d7ee96

File tree

1 file changed

+38
-0
lines changed

1 file changed

+38
-0
lines changed

.github/workflows/lint.yml

+38
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
name: Lint
2+
3+
on:
4+
# Trigger the workflow on push or pull request,
5+
# but only for the main branch
6+
push:
7+
branches:
8+
- main
9+
pull_request:
10+
branches:
11+
- main
12+
13+
permissions:
14+
checks: write
15+
contents: write
16+
17+
jobs:
18+
run-linters:
19+
name: Run linters
20+
runs-on: ubuntu-latest
21+
22+
steps:
23+
- name: Check out Git repository
24+
uses: actions/checkout@v3
25+
26+
- name: Set up Python
27+
uses: actions/setup-python@v1
28+
with:
29+
python-version: 3.8
30+
31+
- name: Install Python dependencies
32+
run: pip install black flake8
33+
34+
- name: Run linters
35+
uses: wearerequired/lint-action@v2
36+
with:
37+
black: true
38+
flake8: true

0 commit comments

Comments
 (0)