Skip to content

docs: typo on CharmBase inheritance example #1780

docs: typo on CharmBase inheritance example

docs: typo on CharmBase inheritance example #1780

name: Data Charm Tests
on:
push:
branches:
- main
pull_request:
workflow_call:
jobs:
db-charm-tests:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- charm-repo: canonical/postgresql-operator
commit: e59139a097bd407b5e785daf8193b777cc691af9 # 2024-08-26T10:45:00Z
- charm-repo: canonical/postgresql-k8s-operator
commit: beed68055e33191721896a3b8e28274a99e7de7b # 2024-08-26T16:47:32Z
- charm-repo: canonical/mysql-operator
commit: 25a8a79680f3fbf3c36e9e1d8c20a852f54129c1 # 2024-08-26T13:48:51Z
- charm-repo: canonical/mysql-k8s-operator
commit: 52df6266067d7233b7a067f7a967170b4096dba8 # rev183 rev182 2024-08-26T13:44:33Z
steps:
- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v4
with:
repository: ${{ matrix.charm-repo }}
ref: ${{ matrix.commit }}
- name: Checkout the operator repository
uses: actions/checkout@v4
with:
path: myops
- name: Install patch dependencies
run: pip install poetry~=1.6
- name: Update 'ops' dependency in test charm to latest
run: |
if [ -e "requirements.txt" ]; then
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
else
sed -i -e "s/^ops[ ><=].*/ops = {path = \"myops\"}/" pyproject.toml
poetry lock --no-update
fi
- name: Install dependencies
run: pip install tox~=4.2
- name: Run the charm's unit tests
run: tox -vve unit