Skip to content

Commit be05ab7

Browse files
committed
add GitHub workflow job for checking coding style and linting
1 parent 25fe4f5 commit be05ab7

1 file changed

Lines changed: 14 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,17 @@ jobs:
2323
nc -z localhost 5005
2424
sleep 2
2525
kill $PID
26+
27+
code_standards:
28+
runs-on: ubuntu-latest
29+
steps:
30+
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
31+
- uses: actions/setup-python@83679a892e2d95755f2dac6acb0bfd1e9ac5d548 # v6.1.0
32+
with:
33+
python-version: 3.9.25
34+
cache: 'pip'
35+
- run: pip install -r requirements.txt
36+
id: pip
37+
- run: black --check .
38+
- run: flake8 .
39+
if: success() || failure() && steps.pip.outcome == 'success'

0 commit comments

Comments
 (0)