Skip to content

chore: update and clarify release process #2138

chore: update and clarify release process

chore: update and clarify release process #2138

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: 4c4b810d0670af3e6c551fa6ea2b9e84a902a46e # rev529 rev528 2024-11-27T16:35:24Z
- charm-repo: canonical/postgresql-k8s-operator
commit: 2c41a8d20d0d51d2980f067894a1ec80e14e1296 # 2024-11-27T19:47:17Z
- charm-repo: canonical/mysql-operator
commit: 21d23a26da074727d67f1b68dc3a915ed0252cc8 # 2024-11-27T14:48:18Z
- charm-repo: canonical/mysql-k8s-operator
commit: cf0d7f9dfe88270fc2fdd9989c098cb7006b82fd # 2024-11-27T14:47:30Z
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