Skip to content

Commit e0dcfd8

Browse files
Add Allure Report beta (#366)
1 parent 4cd27ff commit e0dcfd8

File tree

5 files changed

+46
-7
lines changed

5 files changed

+46
-7
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ on:
1616
jobs:
1717
lint:
1818
name: Lint
19-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
19+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
2020

2121
unit-test:
2222
name: Unit test charm
@@ -36,7 +36,7 @@ jobs:
3636

3737
build:
3838
name: Build charm
39-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
39+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
4040
with:
4141
cache: true
4242

@@ -47,19 +47,22 @@ jobs:
4747
juju:
4848
- agent: 2.9.46
4949
libjuju: ^2
50+
allure: false
5051
- agent: 3.1.7
52+
allure: true
5153
name: Integration test charm | ${{ matrix.juju.agent }}
5254
needs:
5355
- lint
5456
- unit-test
5557
- build
56-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
58+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
5759
with:
5860
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
5961
cloud: microk8s
6062
microk8s-snap-channel: 1.28-strict/stable
6163
juju-agent-version: ${{ matrix.juju.agent }}
6264
libjuju-version-constraint: ${{ matrix.juju.libjuju }}
65+
_beta_allure_report: ${{ matrix.juju.allure }}
6366
secrets:
6467
integration-test: |
6568
{
@@ -68,3 +71,5 @@ jobs:
6871
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}",
6972
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}",
7073
}
74+
permissions:
75+
contents: write # Needed for Allure Report beta

.github/workflows/release.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,17 +31,20 @@ jobs:
3131
- lib-check
3232
uses: ./.github/workflows/ci.yaml
3333
secrets: inherit
34+
permissions:
35+
contents: write # Needed for Allure Report beta
36+
3437
build:
3538
name: Build charm
36-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
39+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
3740

3841
release:
3942
name: Release charm
4043
needs:
4144
- lib-check
4245
- ci-tests
4346
- build
44-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
47+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
4548
with:
4649
channel: 8.0/edge
4750
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}

.github/workflows/sync_issue_to_jira.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010
sync:
1111
name: Sync GitHub issue to Jira
12-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
12+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
1313
with:
1414
jira-base-url: https://warthogs.atlassian.net
1515
jira-project-key: DPE

poetry.lock

Lines changed: 31 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,7 @@ pyyaml = "^6.0.1"
7171
urllib3 = "^1.26.16"
7272
lightkube = "^0.14.0"
7373
kubernetes = "^27.2.0"
74+
allure-pytest = "^2.13.2"
7475

7576

7677
[tool.coverage.run]

0 commit comments

Comments
 (0)