Skip to content

Commit

Permalink
Add Allure Report beta (#391)
Browse files Browse the repository at this point in the history
  • Loading branch information
carlcsaposs-canonical authored Jan 26, 2024
1 parent b1811f2 commit 18da4a3
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 7 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ on:
jobs:
lint:
name: Lint
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/lint.yaml@v11.0.1

unit-test:
name: Unit test charm
Expand Down Expand Up @@ -56,7 +56,7 @@ jobs:

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v11.0.1
with:
cache: true

Expand All @@ -67,18 +67,21 @@ jobs:
juju:
- agent: 2.9.46
libjuju: ^2
allure: false
- agent: 3.1.7
allure: true
name: Integration test charm | ${{ matrix.juju.agent }}
needs:
- lint
- unit-test
- build
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/integration_test_charm.yaml@v11.0.1
with:
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
cloud: lxd
juju-agent-version: ${{ matrix.juju.agent }}
libjuju-version-constraint: ${{ matrix.juju.libjuju }}
_beta_allure_report: ${{ matrix.juju.allure }}
secrets:
integration-test: |
{
Expand All @@ -87,3 +90,5 @@ jobs:
"GCP_ACCESS_KEY": "${{ secrets.GCP_ACCESS_KEY }}",
"GCP_SECRET_KEY": "${{ secrets.GCP_SECRET_KEY }}",
}
permissions:
contents: write # Needed for Allure Report beta
6 changes: 4 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ jobs:
name: Tests
uses: ./.github/workflows/ci.yaml
secrets: inherit
permissions:
contents: write # Needed for Allure Report beta

release-libraries:
name: Release libraries
Expand All @@ -35,14 +37,14 @@ jobs:

build:
name: Build charm
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v11.0.1

release:
name: Release charm
needs:
- ci-tests
- build
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v11.0.1
with:
channel: 8.0/edge
artifact-prefix: ${{ needs.build.outputs.artifact-prefix }}
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sync_issue_to_jira.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
jobs:
sync:
name: Sync GitHub issue to Jira
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v11.0.0
uses: canonical/data-platform-workflows/.github/workflows/sync_issue_to_jira.yaml@v11.0.1
with:
jira-base-url: https://warthogs.atlassian.net
jira-project-key: DPE
Expand Down
32 changes: 31 additions & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ tenacity = "^8.2.2"
boto3 = "^1.28.11"
pyyaml = "^6.0"
urllib3 = "^1.26.16"
allure-pytest = "^2.13.2"


[tool.coverage.run]
Expand Down

0 comments on commit 18da4a3

Please sign in to comment.