diff --git a/docs/explanation/testing.md b/docs/explanation/testing.md index 78edbb07c..a898e77d1 100644 --- a/docs/explanation/testing.md +++ b/docs/explanation/testing.md @@ -145,8 +145,10 @@ on: steps: - name: Checkout uses: actions/checkout@v3 - - name: Install dependencies - run: python -m pip install tox + - name: Set up uv + uses: astral-sh/setup-uv@7 + - name: Set up tox and tox-uv + run: uv tool install tox --with tox-uv - name: Run tests run: tox -e unit ``` diff --git a/docs/howto/write-and-structure-charm-code.md b/docs/howto/write-and-structure-charm-code.md index 150fac942..778ccde75 100644 --- a/docs/howto/write-and-structure-charm-code.md +++ b/docs/howto/write-and-structure-charm-code.md @@ -409,10 +409,10 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - - name: Install dependencies - run: pip install tox + - name: Set up uv + uses: astral-sh/setup-uv@7 + - name: Set up tox and tox-uv + run: uv tool install tox --with tox-uv - name: Run linters run: tox -e lint ``` @@ -426,10 +426,10 @@ Other `tox` environments can be run similarly; for example unit tests: steps: - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - - name: Install dependencies - run: pip install tox + - name: Set up uv + uses: astral-sh/setup-uv@7 + - name: Set up tox and tox-uv + run: uv tool install tox --with tox-uv - name: Run tests run: tox -e unit ``` @@ -452,10 +452,10 @@ a cloud in which to deploy it, is required. This example uses a `concierge` in o run: sudo concierge prepare -p k8s - name: Checkout uses: actions/checkout@v4 - - name: Set up Python - uses: actions/setup-python@v5 - - name: Install dependencies - run: pip install tox + - name: Set up uv + uses: astral-sh/setup-uv@7 + - name: Set up tox and tox-uv + run: uv tool install tox --with tox-uv - name: Run integration tests # Set a predictable model name so it can be consumed by charm-logdump-action run: tox -e integration -- --model testing