-
Notifications
You must be signed in to change notification settings - Fork 1
185 lines (160 loc) · 4.87 KB
/
pull_request_checks.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
---
name: Continuous Integration
on: # yamllint disable-line rule:truthy
workflow_dispatch:
inputs:
local-youwol-client_ref:
description: >
Branch, tag or SHA for local-youwol-client checkout.
Default to 'main'
default: main
webpm-client_ref:
description: >
Branch, tag or SHA for webpm-client checkout.
Default to 'main'
default: main
vsf-core_ref:
description: >
Branch, tag or SHA for vsf-core checkout.
Default to 'main'
default: main
http-clients_ref:
description: >
Branch, tag or SHA for http-clients checkout.
Default to 'main'
default: main
todo-app-ts_ref:
description: >
Branch, tag or SHA for todo-app-ts checkout.
Default to 'main'
default: main
skip:
description: |
List of check to skip : local-youwol-client, http-clients, vsf-core,
webpm-client, pipeline-ts, build, version_monotony, audit, pep8,
cleanness, dep_manager
required: false
default: ''
pull_request:
branches:
- main
- 'release/**'
jobs:
integration_local-youwol-client:
name: Integration local-youwol-client
if: "! contains(inputs.skip, 'local-youwol-client')"
uses: youwol/nestor/.github/workflows/integration-tests.yaml@v3
with:
pyYouwolCoverage: true
tsRepository: youwol/local-youwol-client
tsRef: ${{ inputs.local-youwol-client_ref }}
coverageOmit: '*/src/tests/*/yw_pipeline.py'
name: local-youwol-client
secrets: inherit
integration_webpm-client:
name: Integration webpm-client
if: "! contains(inputs.skip, 'webpm-client')"
uses: youwol/nestor/.github/workflows/integration-tests.yaml@v3
with:
pyYouwolCoverage: true
tsRepository: youwol/webpm-client
tsRef: ${{ inputs.webpm-client_ref }}
name: webpm-client
secrets: inherit
integration_vsf-core:
name: Integration vsf-core
if: "! contains(inputs.skip, 'vsf-core')"
uses: youwol/nestor/.github/workflows/integration-tests.yaml@v3
with:
pyYouwolCoverage: true
tsRepository: youwol/vsf-core
tsRef: ${{ inputs.vsf-core_ref }}
name: vsf-core
secrets: inherit
integration_http-clients:
name: Integration http-clients
if: "! contains(inputs.skip, 'http-clients')"
uses: youwol/nestor/.github/workflows/integration-tests.yaml@v3
with:
pyYouwolCoverage: true
tsRepository: youwol/http-clients
tsRef: ${{ inputs.http-clients_ref }}
name: http-clients
secrets: inherit
combine_coverages:
name: Combine Coverages
runs-on: ubuntu-latest
needs:
- integration_local-youwol-client
- integration_webpm-client
- integration_http-clients
- integration_vsf-core
steps:
- name: Prepare repository
id: prepare
uses: youwol/nestor/py-youwol/prepare@v3
- name: Combine
id: combine
uses: youwol/nestor/py-youwol/combine-coverages@v3
pipeline_ts:
name: Pipeline Typescript
if: "! contains(inputs.skip, 'pipeline-ts')"
runs-on: ubuntu-latest
steps:
- name: Prepare repository
id: prepare
uses: youwol/nestor/py-youwol/prepare@v3
- name: Prepare todo-app-ts repository
id: prepare_todo-app-ts
uses: youwol/nestor/ts/prepare@v3
with:
repository: youwol/todo-app-ts
ref: ${{ inputs.todo-app-ts_ref }}
path: ${{ runner.temp }}/todo-app-ts
- name: Build todo-app-ts
id: build_todo-app-ts
uses: youwol/nestor/ts/build@v3
with:
skip: ${{ inputs.skip }}
doc_app:
name: Doc App
uses: ./.github/workflows/subdir_typescript.yml
with:
directory: doc/front-app
static_analysis:
name: Static Analysis
runs-on: ubuntu-latest
steps:
- name: Prepare repository
id: prepare
uses: youwol/nestor/py-youwol/prepare@v3
- name: Checkout target branch
id: checkout_target_branch
uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
path: .py-youwol_target
- name: Static Analysis
id: static_analysis
uses: youwol/nestor/py-youwol/static-analysis@v3
with:
targetBranchPath: .py-youwol_target
skip: ${{ inputs.skip }}
build:
name: Build
needs:
- integration_local-youwol-client
- integration_webpm-client
- integration_vsf-core
- integration_http-clients
- static_analysis
- pipeline_ts
runs-on: ubuntu-latest
if: "! contains(inputs.skip, 'build')"
steps:
- name: Prepare repository
id: prepare
uses: youwol/nestor/py-youwol/prepare@v3
- name: Build
id: build
uses: youwol/nestor/py-youwol/build@v3