diff --git a/.github/workflows/integrate.yaml b/.github/workflows/integrate.yaml index 4f62d9f..cd67e4b 100644 --- a/.github/workflows/integrate.yaml +++ b/.github/workflows/integrate.yaml @@ -88,12 +88,16 @@ jobs: charmcraft-channel: 3.x/stable - run: | - sg snap_microk8s -c "tox -e ${{ matrix.charm }}-integration" + sg snap_microk8s -c "tox -e ${{ matrix.charm }}-integration -- -- --model testing" # Collect debug logs if failed - name: Dump Juju/k8s logs on failure uses: canonical/kubeflow-ci/actions/dump-charm-debug-artifacts@main - if: always() + if: failure() + + - name: Dump logs + if: failure() + uses: canonical/charming-actions/dump-logs@2.6.3 test-bundle: name: Test the bundle diff --git a/tox.ini b/tox.ini index 9fc8dde..46936c8 100644 --- a/tox.ini +++ b/tox.ini @@ -23,7 +23,7 @@ setenv = lint: TYPE = lint integration: TYPE = integration commands = - tox -c charms/katib-{env:CHARM} -e {env:TYPE} + tox -c charms/katib-{env:CHARM} -e {env:TYPE} {posargs} [testenv:update-requirements] allowlist_externals = @@ -66,4 +66,4 @@ description = Check code against coding style standards [testenv:bundle-integration] commands = pytest -v --tb native --show-capture=no --log-cli-level=INFO -s {posargs} {toxinidir}/tests/integration deps = - -r requirements-integration.txt \ No newline at end of file + -r requirements-integration.txt