Skip to content

Commit ffbdacd

Browse files
committed
github pipelines update
1 parent 497a119 commit ffbdacd

4 files changed

Lines changed: 41 additions & 9 deletions

File tree

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ Closes [CH-X](https://metacell.atlassian.net/browse/CH-X)
1212
- [ ] The pull request is explicitly linked to the relevant issue(s)
1313
- [ ] The issue is well described: clearly states the problem and the general proposed solution(s)
1414
- [ ] In this PR it is explicitly stated how to test the current change
15-
- [ ] The labels in the issue set the scope and the type of issue (bug, feature, etc.)
15+
- [ ] The issue seta the scope and the type of issue (bug, story, task, etc.)
1616
- [ ] The relevant components are indicated in the issue (if any)
1717
- [ ] All the automated test checks are passing
1818
- [ ] All the linked issues are included in one Sprint

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -38,11 +38,11 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v2
41+
uses: actions/checkout@v3
4242

4343
# Initializes the CodeQL tools for scanning.
4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v1
45+
uses: github/codeql-action/init@v3
4646
with:
4747
languages: ${{ matrix.language }}
4848
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -53,7 +53,7 @@ jobs:
5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
5555
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
56+
uses: github/codeql-action/autobuild@v3
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -67,4 +67,4 @@ jobs:
6767
# make release
6868

6969
- name: Perform CodeQL Analysis
70-
uses: github/codeql-action/analyze@v1
70+
uses: github/codeql-action/analyze@v3

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test
2+
3+
on:
4+
push:
5+
branches: [ develop ]
6+
pull_request:
7+
branches: [ develop ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- uses: actions/checkout@v4
15+
16+
- uses: actions/setup-python@v5
17+
with:
18+
python-version: '3.12'
19+
20+
- name: Install dependencies
21+
run: |
22+
curl -fsSL https://raw.githubusercontent.com/helm/helm/main/scripts/get-helm-3 | bash
23+
pip install tox
24+
25+
- name: Run tox - models
26+
run: tox -c libraries/models/
27+
28+
- name: Run tox - cloudharness-common
29+
run: tox -c libraries/cloudharness-common/
30+
31+
- name: Run tox - deployment-cli-tools
32+
run: tox -c tools/deployment-cli-tools

tools/deployment-cli-tools/tests/test_dockercompose.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,20 +186,20 @@ def test_collect_compose_values_wrong_dependencies_validate(tmp_path):
186186
out_folder = tmp_path / 'test_collect_helm_values_wrong_dependencies_validate'
187187
with pytest.raises(ValuesValidationException):
188188
create_docker_compose_configuration([CLOUDHARNESS_ROOT, f"{RESOURCES}/wrong-dependencies"], output_path=out_folder, domain="my.local",
189-
namespace='test', env='prod', local=False, tag=1, include=["wrong-hard"])
189+
namespace='test', env='prod', local=False, tag=1, include=["wrong-hard"])
190190
try:
191191
create_docker_compose_configuration([CLOUDHARNESS_ROOT, f"{RESOURCES}/wrong-dependencies"], output_path=out_folder, domain="my.local",
192-
namespace='test', env='prod', local=False, tag=1, include=["wrong-soft"])
192+
namespace='test', env='prod', local=False, tag=1, include=["wrong-soft"])
193193

194194
except ValuesValidationException as e:
195195
pytest.fail("Should not error because of wrong soft dependency")
196196

197197
with pytest.raises(ValuesValidationException):
198198
create_docker_compose_configuration([CLOUDHARNESS_ROOT, f"{RESOURCES}/wrong-dependencies"], output_path=out_folder, domain="my.local",
199-
namespace='test', env='prod', local=False, tag=1, include=["wrong-build"])
199+
namespace='test', env='prod', local=False, tag=1, include=["wrong-build"])
200200
try:
201201
create_docker_compose_configuration([CLOUDHARNESS_ROOT, f"{RESOURCES}/wrong-dependencies"], output_path=out_folder, domain="my.local",
202-
namespace='test', env='prod', local=False, tag=1, include=["wrong-services"])
202+
namespace='test', env='prod', local=False, tag=1, include=["wrong-services"])
203203
except ValuesValidationException:
204204
pytest.fail("Should not error because of missing use_services dependency")
205205

0 commit comments

Comments
 (0)