66 - workflow_dispatch
77
88jobs :
9+ pre-commit :
10+ name : Run pre-commit
11+ runs-on : ubuntu-latest
12+ steps :
13+ - name : Check out repository
14+ uses : actions/checkout@v4
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : ' 3.11'
20+ - name : Run pre-commit
21+ uses :
pre-commit/[email protected] 22+
23+ code-ql :
24+ name : CodeQL
25+ needs :
26+ - pre-commit
27+ permissions :
28+ security-events : write
29+ runs-on : ubuntu-latest
30+ strategy :
31+ fail-fast : false
32+ matrix :
33+ language :
34+ - javascript
35+ - python
36+ steps :
37+ - name : Check out repository
38+ uses : actions/checkout@v4
39+
40+ - name : Initialize CodeQL
41+ uses : github/codeql-action/init@v3
42+ with :
43+ languages : ${{ matrix.language }}
44+
45+ - name : Perform CodeQL Analysis
46+ uses : github/codeql-action/analyze@v3
47+ with :
48+ category : /language:${{ matrix.language }}
49+
950 run-tests :
1051 name : Run tests
52+ needs :
53+ - pre-commit
1154 runs-on : ubuntu-latest
1255 steps :
13- - uses : actions/checkout@v4
56+ - name : Check out repository
57+ uses : actions/checkout@v4
1458
1559 - name : Set up Python
1660 uses : actions/setup-python@v5
@@ -28,11 +72,12 @@ jobs:
2872
2973 build-package :
3074 name : Build package
31- needs :
75+ needs :
3276 - run-tests
3377 runs-on : ubuntu-latest
3478 steps :
35- - uses : actions/checkout@v4
79+ - name : Check out repository
80+ uses : actions/checkout@v4
3681
3782 - name : Set up Python
3883 uses : actions/setup-python@v5
@@ -57,11 +102,11 @@ jobs:
57102
58103 test-docker-image :
59104 name : Test Docker image
60- needs :
105+ needs :
61106 - run-tests
62107 runs-on : ubuntu-latest
63108 steps :
64- - name : Check out the repo
109+ - name : Check out repository
65110 uses : actions/checkout@v4
66111
67112 - name : Build Docker image
@@ -121,7 +166,7 @@ jobs:
121166 - test-docker-image
122167 runs-on : ubuntu-latest
123168 steps :
124- - name : Checkout
169+ - name : Check out repository
125170 uses : actions/checkout@v4
126171
127172 - name : Login to Docker Hub
@@ -151,7 +196,7 @@ jobs:
151196 - test-docker-image
152197 runs-on : ubuntu-latest
153198 steps :
154- - name : Checkout
199+ - name : Check out repository
155200 uses : actions/checkout@v4
156201
157202 - name : Set up QEMU
0 commit comments