Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docs/explanation/testing.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand Down
24 changes: 12 additions & 12 deletions docs/howto/write-and-structure-charm-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
Expand All @@ -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
```
Expand All @@ -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
Expand Down
Loading