Allure Report for integration_test_charm.yaml
Warning
This feature is in beta and not part of the public interface. It is subject to breaking changes or removal on a patch version bump.
poetry add --group integration allure-pytest
- Add
allure-pytest-collection-report = {git = "https://github.com/canonical/data-platform-workflows", tag = "v0.0.0", subdirectory = "python/pytest_plugins/allure_pytest_collection_report"}
to your integration test dependencies in pyproject.toml
.
- Set
_beta_allure_report: true
for one instance ofintegration_test_charm.yaml
. Ifintegration_test_charm.yaml
is called with a matrix,_beta_allure_report
can only betrue
for one combination of the matrix. - Add permission to
integration_test_charm.yaml
job and all calling workflows
permissions:
contents: write # Needed for Allure Report beta
- Create gh pages branch
data-platform-workflows/.github/workflows/integration_test_charm.yaml
Lines 363 to 371 in 5a2c816
- Enable gh pages publishing at https://github.com/canonical/mysql-router-k8s-operator/settings/pages (replace
mysql-router-k8s-operator
with repository name)
Example for 1, 3-4: canonical/mysql-router-k8s-operator#198
Example for 2: canonical/mysql-router-k8s-operator#252