Skip to content
Open
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
4 changes: 2 additions & 2 deletions .github/update-published-charms-tests-workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,7 @@
# Handled by db-charm-tests.yaml
'postgresql-operator',
'postgresql-k8s-operator',
'mysql-operator',
'mysql-k8s-operator',
'mysql-operators',
# Handled by hello-charm-tests.yaml
'hello-kubecon', # Not in the canonical org anyway (jnsgruk).
'hello-juju-charm', # Not in the canonical org anyway (juju).
Expand Down Expand Up @@ -94,6 +93,7 @@
'charms/kfp-viewer',
'charms/kfp-viz',
],
'mysql-operators': ['machines', 'kubernetes'],
'mysql-router-operators': ['machines', 'kubernetes'],
'notebook-operators': ['charms/jupyter-controller', 'charms/jupyter-ui'],
'tempo-operators': ['coordinator', 'worker'],
Expand Down
19 changes: 13 additions & 6 deletions .github/workflows/db-charm-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,23 @@ jobs:
matrix:
include:
- charm-repo: canonical/postgresql-operator
charm-root: .
commit: cdaffd23a2a50efb7ff0c7e1ffb70d85da526505 # 2026-05-24T21:43:47Z
- charm-repo: canonical/postgresql-k8s-operator
charm-root: .
commit: c434df80953409f290e7ea6e76f78a3ec46cecc2 # 2026-05-30T03:35:40Z
- charm-repo: canonical/mysql-operator
commit: 8b73ff31c76ab3234acd4e4172b0347073def2fa # 2026-01-20T15:34:11Z
- charm-repo: canonical/mysql-k8s-operator
commit: 0088c9583f63999ff37d982948e47b9e3e3fba2a # 2026-01-20T15:48:23Z
- charm-repo: canonical/mysql-operators
charm-root: machines
commit: 5f41a556c5252468c7f720343c0bd72e4385ef8b # 2026-06-02T07:35:20Z
- charm-repo: canonical/mysql-operators
charm-root: kubernetes
commit: 5f41a556c5252468c7f720343c0bd72e4385ef8b # 2026-06-02T07:35:20Z
steps:
- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v6.0.2
with:
repository: ${{ matrix.charm-repo }}
path: charm-repo
persist-credentials: false
ref: ${{ matrix.commit }}

Expand All @@ -47,9 +52,10 @@ jobs:
run: pip install poetry~=2.0

- name: Update 'ops' dependency in test charm to latest
working-directory: charm-repo/${{ matrix.charm-root }}
run: |
ops_wheel="$(ls operator-wheels/ops-[0-9]*.whl)"
ops_tracing_wheel="$(ls operator-wheels/ops_tracing-*.whl)"
ops_wheel="$(ls "$GITHUB_WORKSPACE"/operator-wheels/ops-[0-9]*.whl)"
ops_tracing_wheel="$(ls "$GITHUB_WORKSPACE"/operator-wheels/ops_tracing-*.whl)"
if [ -e "requirements.txt" ]; then
sed -i -e "/^ops[ ><=]/d" -e "/canonical\/operator/d" -e "/#egg=ops/d" requirements.txt
echo -e "\n${ops_wheel}" >> requirements.txt
Expand All @@ -76,4 +82,5 @@ jobs:
run: pip install tox~=4.2

- name: Run the charm's unit tests
working-directory: charm-repo/${{ matrix.charm-root }}
run: tox -vve unit
Loading