Skip to content

Commit

Permalink
ci: correctly set up pip + tox with sudo for integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
james-garner-canonical committed Jan 14, 2025
1 parent f545530 commit 0edbca4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: '3.12'
# tests must be run as root because they configure the system
- name: Install tox
run: pip install tox~=4.2
run: sudo python -m pip install tox~=4.2
- name: Run integration tests for Ubuntu
# tests must be run as root because they configure the system
run: tox -e integration-ubuntu
run: sudo tox -e integration-ubuntu
integration-test-juju-systemd-notices:
name: Juju systemd notices integration tests
runs-on: ubuntu-latest
Expand Down

0 comments on commit 0edbca4

Please sign in to comment.