Skip to content

chore: update charm pins #2098

chore: update charm pins

chore: update charm pins #2098

Workflow file for this run

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: 3eb537d9f361fd1fc88b674b89f1b51e5f3df58b # rev520 rev519 2024-11-22T14:16:15Z
- charm-repo: canonical/postgresql-k8s-operator
commit: fdf66d449be185f06586b8ec5a1490d61b507fcd # 2024-11-21T17:01:49Z
- charm-repo: canonical/mysql-operator
commit: 70ba5f907cbf78c66561b37b5bf01cc90c0c4992 # 2024-11-18T14:31:28Z
- charm-repo: canonical/mysql-k8s-operator
commit: 30dd0d4a16db7bb61cd511784ad9a162b988efb2 # 2024-11-19T13:36:57Z
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