Commit e64219c 1 parent 4f7f1dc commit e64219c Copy full SHA for e64219c
File tree 3 files changed +51
-0
lines changed
3 files changed +51
-0
lines changed Original file line number Diff line number Diff line change
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
+ concurrency :
14
+ group : ${{ github.workflow }}-${{ github.event_name == 'pull_request' && github.head_ref || github.ref }}
15
+ cancel-in-progress : true
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@v4
28
+ with :
29
+ python-version : " 3.10"
30
+
31
+ - name : Install Wheel
32
+ run : pip install wheel
33
+
34
+ - name : Install Cython
35
+ run : pip install Cython
36
+
37
+ - name : Install Python dependencies
38
+ run : pip install -r requirements.txt
39
+
40
+ - name : Install Python dev dependencies
41
+ run : pip install -r requirements-dev.txt
42
+
43
+ - name : Run linters
44
+ uses : wearerequired/lint-action@v2
45
+ with :
46
+ black : true
47
+ flake8 : true
48
+ github_token : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change
1
+ black == 24.4.2
2
+ flake8 == 7.0.0
Original file line number Diff line number Diff line change
1
+ fastapi == 0.111.0
You can’t perform that action at this time.
0 commit comments