From ee6a2fe5ca89c40350218afb6e999578a303b2ef Mon Sep 17 00:00:00 2001 From: Dragomir Penev <6687393+dragomirp@users.noreply.github.com> Date: Sun, 29 Oct 2023 00:36:29 +0300 Subject: [PATCH] Conditionally free disk space --- .github/workflows/ci.yaml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 109be72f3f..21ff18e82c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -65,11 +65,17 @@ jobs: - upgrade-integration - upgrade-from-stable-integration juju-snap-channel: ["2.9/stable", "3.1/stable"] + free-disk-space: + - false exclude: # Admin tests need landscape on juju 2 - tox-environment: db-admin-relation-integration juju-snap-channel: "3.1/stable" include: + - tox-environment: database-relation-integration + free-disk-space: true + - tox-environment: db-admin-relation-integration + free-disk-space: true - juju-snap-channel: "3.1/stable" agent-version: "3.1.6" libjuju-version: "3.2.2" @@ -93,6 +99,7 @@ jobs: pipx install tox pipx install poetry - name: Free up disk space + if: ${{ matrix.free-disk-space == true }} run: | # From https://github.com/actions/runner-images/issues/2840#issuecomment-790492173 sudo rm -rf /usr/share/dotnet