diff --git a/README.md b/README.md index 1c8bbcf5..81fe722d 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # Alertmanager Operator (k8s) -[![Alertmanager](https://charmhub.io/alertmanager-k8s/badge.svg)](https://charmhub.io/alertmanager-k8s) -[![Test Suite](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml) -![Discourse status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.charmhub.io&style=flat) +[![Charmhub Badge](https://charmhub.io/alertmanager-k8s/badge.svg)](https://charmhub.io/alertmanager-k8s) +[![Release Edge](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-edge.yaml) +[![Release Libraries](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-libs.yaml/badge.svg)](https://github.com/canonical/alertmanager-k8s-operator/actions/workflows/release-libs.yaml) +[![Discourse Status](https://img.shields.io/discourse/status?server=https%3A%2F%2Fdiscourse.charmhub.io&style=flat&label=CharmHub%20Discourse)](https://discourse.charmhub.io) [Charmed Alertmanager (alertmanager-k8s)][Alertmanager operator] is a charm for [Alertmanager]. diff --git a/tox.ini b/tox.ini index 08bbe6d0..f786c3b6 100644 --- a/tox.ini +++ b/tox.ini @@ -75,10 +75,7 @@ deps = commands = charm: mypy {[vars]src_path} {posargs} lib: mypy --python-version 3.5 {[vars]lib_path} {posargs} - lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do \ - lib: if ! git diff $m | grep -q "+LIBPATCH\|+LIBAPI"; then \ - lib: echo "You forgot to bump the version on $m!"; exit 1; \ - lib: fi; done' + lib: /usr/bin/env sh -c 'for m in $(git diff main --name-only {[vars]lib_path}); do if ! git diff main $m | grep -q "+LIBPATCH\|+LIBAPI"; then echo "You forgot to bump the version on $m!"; exit 1; fi; done' unit: mypy {[vars]tst_path}/unit {posargs} integration: mypy {[vars]tst_path}/integration {posargs} allowlist_externals = /usr/bin/env