-
Notifications
You must be signed in to change notification settings - Fork 40
193 lines (187 loc) · 6.25 KB
/
.test-cloud.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
186
187
188
189
190
191
192
193
---
name: . Test Cloud
'on':
workflow_call:
inputs:
# Workflows
workflow:
required: true
type: boolean
# Applications
# Cloud Platform
amazon-sagemaker-pytorch-mnist:
required: true
type: boolean
hm-aws-parallelcluster:
required: true
type: boolean
# Cloud Infrastructure
hm-pulumi:
required: true
type: boolean
production-aws-glue-spark-scripts:
required: true
type: boolean
# Cloud Security
hm-prowler:
required: true
type: boolean
jobs:
# Cloud Platform
amazon-sagemaker-pytorch-mnist-test:
name: Amazon SageMaker (pytorch-mnist) | Test
if: ${{ inputs.workflow || inputs.amazon-sagemaker-pytorch-mnist }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.20
enable-cache: true
cache-dependency-glob: cloud-platform/aws/amazon-sagemaker/pytorch-mnist/uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: cloud-platform/aws/amazon-sagemaker/pytorch-mnist/pyproject.toml
- name: Install dependencies
working-directory: cloud-platform/aws/amazon-sagemaker/pytorch-mnist
run: |
uv sync --dev
- name: Test
working-directory: cloud-platform/aws/amazon-sagemaker/pytorch-mnist
run: |
uv run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
directory: cloud-platform/aws/amazon-sagemaker/pytorch-mnist
# Cloud Infrastructure
aws-parallelcluster-test:
name: AWS ParallelCluster | Test
if: ${{ inputs.workflow || inputs.hm-aws-parallelcluster }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.20
enable-cache: true
cache-dependency-glob: cloud-platform/aws/aws-parallelcluster/pcluster/uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: cloud-platform/aws/aws-parallelcluster/pcluster/pyproject.toml
- name: Install dependencies
working-directory: cloud-platform/aws/aws-parallelcluster/pcluster
run: |
uv sync --dev
- name: Test
working-directory: cloud-platform/aws/aws-parallelcluster/pcluster
run: |
uv run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
directory: cloud-platform/aws/aws-parallelcluster/pcluster
pulumi-test:
name: Pulumi | Test
if: ${{ inputs.workflow || inputs.hm-pulumi }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.20
enable-cache: true
cache-dependency-glob: cloud-infrastructure/hm-pulumi/uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: cloud-infrastructure/hm-pulumi/pyproject.toml
- name: Install dependencies
working-directory: cloud-infrastructure/hm-pulumi
run: |
uv sync --dev
- name: Test
working-directory: cloud-infrastructure/hm-pulumi
run: |
uv run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
directory: cloud-infrastructure/hm-pulumi
production-aws-glue-spark-scripts-test:
name: AWS Glue (production spark-scripts) | Test
if: ${{ inputs.workflow || inputs.production-aws-glue-spark-scripts }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.20
enable-cache: true
cache-dependency-glob: cloud-infrastructure/terraform/environments/production/aws/general/files/aws-glue/spark-scripts/uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: cloud-infrastructure/terraform/environments/production/aws/general/files/aws-glue/spark-scripts/pyproject.toml
- name: Install dependencies
working-directory: cloud-infrastructure/terraform/environments/production/aws/general/files/aws-glue/spark-scripts
run: |
uv sync --dev
- name: Test
working-directory: cloud-infrastructure/terraform/environments/production/aws/general/files/aws-glue/spark-scripts
run: |
uv run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
directory: cloud-infrastructure/terraform/environments/production/aws/general/files/aws-glue/spark-scripts
# Cloud Security
prowler-test:
name: Prowler | Test
if: ${{ inputs.workflow || inputs.hm-prowler }}
runs-on: ubuntu-24.04
environment: test
timeout-minutes: 10
steps:
- name: Checkout
uses: actions/[email protected]
- name: Install uv
uses: astral-sh/[email protected]
with:
version: 0.5.20
enable-cache: true
cache-dependency-glob: cloud-security/hm-prowler/uv.lock
- name: Set up Python
uses: actions/[email protected]
with:
python-version-file: cloud-security/hm-prowler/pyproject.toml
- name: Install dependencies
working-directory: cloud-security/hm-prowler
run: |
uv sync --dev
- name: Test
working-directory: cloud-security/hm-prowler
run: |
uv run poe test-coverage
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
directory: cloud-security/hm-prowler