Skip to content

Commit

Permalink
fix(spread): run tox in lifecycle spread test (#1484)
Browse files Browse the repository at this point in the history
Fixes #1471
  • Loading branch information
lengau authored Jan 17, 2024
1 parent 3676ea8 commit 8a8ec39
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/spread/smoketests/full-lifecycle/task.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
summary: pack a charm that uses several lifecycle mechanisms and extra files

environment:
TEMPLATE/simple: simple
TEMPLATE/machine: machine
TEMPLATE/kubernetes: kubernetes

include:
- tests/

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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8a8ec39

Please sign in to comment.