@@ -3,24 +3,20 @@ name: CI
33on :
44 pull_request :
55 workflow_dispatch :
6- push :
7- branches : [ main ]
86
97concurrency :
108 group : ${{ github.workflow }}-${{ github.ref }}
119 cancel-in-progress : true
1210
1311jobs :
1412 auto-assigner :
15- if : ${{ github.event_name == 'pull_request' }}
1613 runs-on : ubuntu-latest
1714
1815 steps :
1916 - name : Auto-assign
20172118
2219 labeler :
23- if : ${{ github.event_name == 'pull_request' }}
2420 runs-on : ubuntu-latest
2521
2622 steps :
3531 configuration-path : .github/labeler.yaml
3632
3733 pre-commit :
38- if : ${{ github.event_name == 'pull_request' }}
3934 runs-on : ubuntu-latest
4035
4136 steps :
5146 uses :
pre-commit/[email protected] 5247
5348 docs :
54- if : ${{ github.event_name == 'pull_request' }}
5549 needs : pre-commit
5650 runs-on : ubuntu-latest
5751
6862 run : pydoctor --docformat=epytext luxonis_ml
6963
7064 type-check :
71- if : ${{ github.event_name == 'pull_request' }}
7265 needs : pre-commit
7366 runs-on : ubuntu-latest
7467
9689 project : pyproject.toml
9790
9891 semgrep :
99- if : ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }})
92+ if : ${{ github.actor != 'dependabot[bot]' }})
10093 needs : pre-commit
10194 runs-on : ubuntu-latest
10295 container :
@@ -149,7 +142,6 @@ jobs:
149142 matrix :
150143 os : [ ubuntu-latest, windows-latest ]
151144
152- if : ${{ github.event_name == 'pull_request' }}
153145 needs : [type-check, semgrep]
154146 runs-on : ${{ matrix.os }}
155147
@@ -213,29 +205,6 @@ jobs:
213205 path : coverage.xml
214206 overwrite : true
215207
216- update-base-report :
217- if : ${{ github.event_name == 'push' }}
218- runs-on : ubuntu-latest
219-
220- steps :
221- - name : Checkout
222- uses : actions/checkout@v4
223- with :
224- ref : ${{ github.head_ref }}
225-
226- - name : Download artifacts
227- uses : dawidd6/action-download-artifact@v7
228- with :
229- name : coverage
230- path : coverage.xml
231- workflow : ci.yaml
232-
233- - name : Upload coverage results to Codecov
234- uses : codecov/codecov-action@v4
235- with :
236- token : ${{ secrets.CODECOV_TOKEN }}
237- fail_ci_if_error : false
238-
239208
240209 check-requirements :
241210 if : ${{ startsWith(github.head_ref, 'release/') }}
0 commit comments