Skip to content

Commit

Permalink
ci: use sudo when apt installing tox in github actions
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Oct 9, 2024
1 parent 729f865 commit 356efa0
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: apt install tox
run: sudo apt install tox
- name: Run linter
run: |
tox -e lint
Expand Down Expand Up @@ -60,7 +60,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: apt install tox
run: sudo apt install tox
- name: Run unit tests
run: tox -e py3

Expand Down Expand Up @@ -117,7 +117,7 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: apt install tox
run: sudo apt install tox
- name: Run integration
# Force one single concurrent test
run: tox -e integration
Expand All @@ -144,6 +144,6 @@ jobs:
with:
python-version: ${{ matrix.python }}
- name: Install dependencies
run: apt install tox
run: sudo apt install tox
- name: Run integration
run: tox -e integration-quarantine
2 changes: 1 addition & 1 deletion .github/workflows/test_candidate.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dependencies
if: ${{ env.next-test != 'NA' }}
run: apt install tox
run: sudo apt install tox
- name: Run integration
if: ${{ env.next-test != 'NA' }}
# Force one single concurrent test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test_edge.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:
python-version: ${{ matrix.python }}
- name: Install dependencies
if: ${{ env.next-test != 'NA' }}
run: apt install tox
run: sudo apt install tox
- name: Run integration
if: ${{ env.next-test != 'NA' }}
# Force one single concurrent test
Expand Down

0 comments on commit 356efa0

Please sign in to comment.