From 8a8ec393d1c8e4768f18c81a7bbf87b2e0272ee6 Mon Sep 17 00:00:00 2001 From: Alex Lowe Date: Wed, 17 Jan 2024 09:56:29 -0600 Subject: [PATCH] fix(spread): run tox in lifecycle spread test (#1484) Fixes #1471 --- tests/spread/smoketests/full-lifecycle/task.yaml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/spread/smoketests/full-lifecycle/task.yaml b/tests/spread/smoketests/full-lifecycle/task.yaml index 51fce4ccb..471f63ede 100644 --- a/tests/spread/smoketests/full-lifecycle/task.yaml +++ b/tests/spread/smoketests/full-lifecycle/task.yaml @@ -1,5 +1,10 @@ summary: pack a charm that uses several lifecycle mechanisms and extra files +environment: + TEMPLATE/simple: simple + TEMPLATE/machine: machine + TEMPLATE/kubernetes: kubernetes + include: - tests/ @@ -7,6 +12,8 @@ kill-timeout: 30m prepare: | tests.pkgs install unzip + tests.pkgs install pipx python3-venv + pipx install --force tox rm -rf charm charmcraft init --project-dir=charm cd charm @@ -37,6 +44,7 @@ restore: | execute: | cd charm + ~/.local/bin/tox run charmcraft pack --verbose test -f charm*.charm # Charmcraft 3.0 uses the craft-parts standard prime keyword that only