Skip to content

Commit fda71b0

Browse files
committed
tests: add lint github action workflow
1 parent a9f82fa commit fda71b0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/lint.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
---
2+
name: "lint"
3+
4+
# yamllint disable-line rule:truthy
5+
on:
6+
push:
7+
branches:
8+
- "*"
9+
10+
jobs:
11+
lint:
12+
name: tagged-release
13+
runs-on: ubuntu-22.04
14+
15+
steps:
16+
- name: Checkout repository
17+
uses: actions/checkout@v4
18+
with:
19+
fetch-depth: 0
20+
- name: Setup Python
21+
uses: actions/setup-python@v4
22+
with:
23+
python-version: "3.8"
24+
cache: "pip"
25+
- run: pip install -r requirements.txt
26+
- run: flake8 --ignore=E501,E203,W503
27+
- run: black .
28+
- run: rst-lint README.rst

0 commit comments

Comments
 (0)