Zachary Schillaci commited on
Commit
b8b1813
·
1 Parent(s): dddb0dc
Files changed (1) hide show
  1. .github/workflows/lint_and_test.yml +29 -0
.github/workflows/lint_and_test.yml ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ name: Lint & Test
2
+
3
+ on:
4
+ push:
5
+ branches-ignore:
6
+ - main
7
+
8
+ jobs:
9
+ black:
10
+ runs-on: ubuntu-latest
11
+ steps:
12
+ - uses: actions/checkout@master
13
+ - uses: psf/black@stable
14
+
15
+ flake8-py3:
16
+ runs-on: ubuntu-latest
17
+ steps:
18
+ - name: Setup Python
19
+ uses: actions/setup-python@v5
20
+ with:
21
+ python-version: "3.10"
22
+ architecture: x64
23
+ - uses: actions/checkout@v4
24
+ - run: pip install flake8
25
+ - uses: suo/flake8-github-action@releases/v1
26
+ with:
27
+ checkName: "flake8-py3" # NOTE: this needs to be the same as the job name
28
+ env:
29
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}