Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ci: re-enable integration tests with mysql-*operator #1013

Merged
merged 14 commits into from
Sep 27, 2023
Merged
Changes from 12 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
22 changes: 17 additions & 5 deletions .github/workflows/db-charm-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,20 +11,32 @@ jobs:
charm-repo:
- "canonical/postgresql-operator"
- "canonical/postgresql-k8s-operator"
# TODO: uncomment once we've fixed https://github.com/canonical/operator/issues/987
# - "canonical/mysql-operator"
# - "canonical/mysql-k8s-operator"
- "canonical/mysql-operator"
- "canonical/mysql-k8s-operator"

steps:
- name: Checkout the ${{ matrix.charm-repo }} repository
uses: actions/checkout@v3
with:
repository: ${{ matrix.charm-repo }}

- name: Checkout the operator repository
uses: actions/checkout@v3
with:
path: myops
tonyandrewmeyer marked this conversation as resolved.
Show resolved Hide resolved

- name: Install patch dependencies
run: pip install poetry==1.6.1
tonyandrewmeyer marked this conversation as resolved.
Show resolved Hide resolved

- 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
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
tonyandrewmeyer marked this conversation as resolved.
Show resolved Hide resolved
fi

- name: Install dependencies
run: pip install tox==4.2.8
Expand Down
Loading