Skip to content

Commit

Permalink
fix: use pipx for CI actions
Browse files Browse the repository at this point in the history
Pins action image to Ubuntu 24.04, to avoid future breakages.
  • Loading branch information
jedel1043 committed Oct 10, 2024
1 parent a15ee51 commit 40a1717
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
14 changes: 7 additions & 7 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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/[email protected]
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/release-libs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 40a1717

Please sign in to comment.