Skip to content

chore: update charm pins #3321

chore: update charm pins

chore: update charm pins #3321

name: Observability Charm Tests
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
o11y-charm-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- charm-repo: canonical/alertmanager-k8s-operator
commit: 083c0a2ab2a14e9c9aa4fd95f1d8ad51eb0abb13 # rev144 2024-12-20T12:11:09Z
- charm-repo: canonical/prometheus-k8s-operator
commit: 62cd2d9b8c3a528910ce12c553209817e1b7a889 # rev226 2024-12-19T16:01:25Z
disabled: true # Waiting for an upstream PR: https://github.com/canonical/prometheus-k8s-operator/pull/639
- charm-repo: canonical/grafana-k8s-operator
commit: 807317c9f0943287c3650d5ef0f072fd06780387 # rev128 2024-12-19T07:48:09Z
steps:
- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v4
with:
repository: ${{ matrix.charm-repo }}
ref: ${{ matrix.commit }}
- name: Update 'ops' dependency in test charm to latest
run: |
sed -i -e "/^ops[ ><=]/d" -e "/canonical\/operator/d" -e "/#egg=ops/d" requirements.txt
echo -e "\ngit+$GITHUB_SERVER_URL/$GITHUB_REPOSITORY@$GITHUB_SHA#egg=ops" >> requirements.txt
- name: Install dependencies
run: pip install tox~=4.2
- name: Run the charm's unit tests
if: ${{ !(matrix.disabled) }}
run: tox -vve unit
- name: Run the charm's static analysis checks
if: ${{ !(matrix.disabled) }}
run: tox -vve static-charm