From 809f97cfc65d6cc22a0235fdef05a47dcef7e7de Mon Sep 17 00:00:00 2001 From: Daniel Arndt Date: Thu, 12 Dec 2024 13:29:14 -0400 Subject: [PATCH] build: Fix tox installation in integration tests (#277) --- .github/workflows/integration-test.yaml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/integration-test.yaml b/.github/workflows/integration-test.yaml index dd01c5d..4a8a448 100644 --- a/.github/workflows/integration-test.yaml +++ b/.github/workflows/integration-test.yaml @@ -22,11 +22,11 @@ jobs: with: name: built-charm-${{ matrix.arch.arch }} path: built/ - + - name: Get Charm Under Test Path id: charm-path run: echo "charm_path=$(find built/ -name '*.charm' -type f -print)" >> $GITHUB_OUTPUT - + - name: Setup operator environment uses: charmed-kubernetes/actions-operator@main with: @@ -37,22 +37,22 @@ jobs: - name: Install UV and Tox run: | - python3 -m pip uninstall tox -y + pipx uninstall tox sudo snap install astral-uv --classic - uv tool install tox --with tox-uv + uv tool install tox --with tox-uv --force - name: Run integration tests run: | tox -e integration -- \ --charm_path=${{ steps.charm-path.outputs.charm_path }} - + - name: Archive charmcraft logs if: failure() uses: actions/upload-artifact@v4 with: name: charmcraft-logs path: /home/runner/.local/state/charmcraft/log/*.log - + - name: Archive juju crashdump if: failure() uses: actions/upload-artifact@v4