From 40a17178b9d788fc1d7fba3ce6a5aa01acbeeb2d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Juli=C3=A1n=20Espina?= Date: Thu, 10 Oct 2024 16:25:50 -0600 Subject: [PATCH] fix: use pipx for CI actions Pins action image to Ubuntu 24.04, to avoid future breakages. --- .github/workflows/ci.yaml | 14 +++++++------- .github/workflows/release-libs.yaml | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 41c384d..4539ee8 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -9,7 +9,7 @@ on: jobs: inclusive-naming-check: name: Inclusive naming check - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 @@ -20,29 +20,29 @@ jobs: lint: name: Lint - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies - run: python3 -m pip install tox + run: pipx install tox - name: Run linters run: tox -e lint unit-test: name: Unit tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 steps: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies - run: python3 -m pip install tox + run: pipx install tox - name: Run tests run: tox -e unit integration-test: name: Integration tests - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - inclusive-naming-check - lint @@ -51,7 +51,7 @@ jobs: - name: Checkout uses: actions/checkout@v4 - name: Install dependencies - run: python3 -m pip install tox + run: pipx install tox - name: Set up LXD uses: canonical/setup-lxd@v0.1.1 with: diff --git a/.github/workflows/release-libs.yaml b/.github/workflows/release-libs.yaml index 5b041bb..a96f579 100644 --- a/.github/workflows/release-libs.yaml +++ b/.github/workflows/release-libs.yaml @@ -25,7 +25,7 @@ jobs: release-to-charmhub: name: Release latest version of libraries to Charmhub - runs-on: ubuntu-latest + runs-on: ubuntu-24.04 needs: - ci steps: