From 95c59e593a93ce101628cf0b78cb46331c4e8fda Mon Sep 17 00:00:00 2001 From: Luciano Lo Giudice Date: Tue, 28 May 2024 19:45:07 -0300 Subject: [PATCH] Fix functional test --- .github/workflows/build-and-test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build-and-test.yml b/.github/workflows/build-and-test.yml index df2ed70..27293a0 100644 --- a/.github/workflows/build-and-test.yml +++ b/.github/workflows/build-and-test.yml @@ -28,7 +28,7 @@ jobs: - name: Install dependencies run: | sudo apt-get -qq install libxslt-dev libxml2-dev python3-lxml - python -m pip install tox + python3 -m pip install tox - name: Run tests run: tox -e py3 @@ -48,7 +48,7 @@ jobs: channel: 5.20/stable - name: Install dependencies - run: python -m pip install tox + run: python3 -m pip install tox - name: Build charm(s) id: builder @@ -90,10 +90,12 @@ jobs: - name: Install dependencies run: | - python -m pip install tox - sudo snap install juju - mkdir -p ~/.local/share/juju - juju bootstrap localhost + python3 -m pip install tox + if [ ! -d "$HOME/.local/share/juju" ]; then + sudo snap install juju + mkdir -p ~/.local/share/juju + juju bootstrap localhost localhost + fi - name: Run focal-wallaby tests run: |