fix uninstall test (#7) #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright 2024 Canonical Ltd. | |
# See LICENSE file for licensing details. | |
name: Unit testing | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
# Run checks on reopened draft PRs to support triggering PR checks on draft PRs that were opened | |
# by other workflows. | |
types: [opened, synchronize, reopened, ready_for_review] | |
jobs: | |
maas-agent-charm: | |
name: MAAS Agent unit test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
defaults: | |
run: | |
working-directory: ./maas-agent-charm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install tox | |
run: | | |
pipx install tox | |
- name: Run linter | |
run: tox run -e lint | |
- name: Run static checks | |
run: tox run -e static | |
- name: Run tests | |
run: tox run -e unit | |
maas-region-charm: | |
name: MAAS region unit test | |
runs-on: ubuntu-latest | |
timeout-minutes: 5 | |
defaults: | |
run: | |
working-directory: ./maas-region-charm | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Install tox | |
run: | | |
pipx install tox | |
- name: Run linter | |
run: tox run -e lint | |
- name: Run static checks | |
run: tox run -e static | |
- name: Run tests | |
run: tox run -e unit |