Skip to content

Commit bf91e13

Browse files
Add Allure Report beta (#332)
1 parent 3ab858b commit bf91e13

File tree

5 files changed

+55
-28
lines changed

5 files changed

+55
-28
lines changed

.github/workflows/ci.yaml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
lint:
2424
name: Lint
25-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
25+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
2626

2727
unit-test:
2828
name: Unit test charm
@@ -42,7 +42,7 @@ jobs:
4242

4343
build:
4444
name: Build charm
45-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
45+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
4646
with:
4747
cache: true
4848

@@ -53,18 +53,21 @@ jobs:
5353
juju:
5454
- agent: 2.9.46
5555
libjuju: ^2
56+
allure: false
5657
- agent: 3.1.7
58+
allure: true
5759
name: Integration test charm | ${{ matrix.juju.agent }}
5860
needs:
5961
- lint
6062
- unit-test
6163
- build
62-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
64+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
6365
with:
6466
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
6567
cloud: lxd
6668
juju-agent-version: ${{ matrix.juju.agent }}
6769
libjuju-version-constraint: ${{ matrix.juju.libjuju }}
70+
_beta_allure_report: ${{ matrix.juju.allure }}
6871
secrets:
6972
integration-test: |
7073
{
@@ -73,3 +76,5 @@ jobs:
7376
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}",
7477
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}",
7578
}
79+
permissions:
80+
contents: write # Needed for Allure Report beta

.github/workflows/release.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ jobs:
1919
name: Tests
2020
uses: ./.github/workflows/ci.yaml
2121
secrets: inherit
22+
permissions:
23+
contents: write # Needed for Allure Report beta
2224

2325
build:
2426
name: Build charm
25-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
27+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
2628

2729
release:
2830
name: Release charm
2931
needs:
3032
- ci-tests
3133
- build
32-
uses: canonical/data-platform-workflows/.github/workflows/[email protected].0
34+
uses: canonical/data-platform-workflows/.github/workflows/[email protected].1
3335
with:
3436
channel: 14/edge
3537
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: 38 additions & 19 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,17 @@ optional = true
6565

6666
[tool.poetry.group.integration.dependencies]
6767
pytest = "^7.4.4"
68-
pytest-github-secrets = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/github_secrets"}
68+
pytest-github-secrets = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.1", subdirectory = "python/pytest_plugins/github_secrets"}
6969
pytest-operator = "^0.32.0"
70-
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
71-
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.0", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
70+
pytest-operator-cache = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.1", subdirectory = "python/pytest_plugins/pytest_operator_cache"}
71+
pytest-operator-groups = {git = "https://github.com/canonical/data-platform-workflows", tag = "v11.0.1", subdirectory = "python/pytest_plugins/pytest_operator_groups"}
7272
juju = "^3.3.0.0"
7373
boto3 = "*"
7474
tenacity = "*"
7575
landscape-api-py3 = "^0.9.0"
7676
mailmanclient = "^3.3.5"
7777
psycopg2-binary = "*"
78+
allure-pytest = "^2.13.2"
7879

7980
# Testing tools configuration
8081
[tool.coverage.run]

0 commit comments

Comments
 (0)