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

[WIP][IGNORE][DPE-2683] Juju3 pipelines enabled #332

Draft
wants to merge 5 commits into
base: main
Choose a base branch
from
Draft
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
21 changes: 19 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ jobs:
uses: canonical/data-platform-workflows/.github/workflows/[email protected]

unit-test:
strategy:
fail-fast: false
matrix:
juju-version: ["2.9", "3.1"]
name: Unit test charm
runs-on: ubuntu-latest
timeout-minutes: 5
Expand All @@ -31,6 +35,8 @@ jobs:
pipx install poetry
- name: Run tests
run: tox run -e unit
env:
LIBJUJU_VERSION_SPECIFIER: ${{ matrix.juju-version }}
- name: Upload Coverage to Codecov
uses: codecov/codecov-action@v3

Expand Down Expand Up @@ -98,7 +104,16 @@ jobs:
# Update whenever charmcraft.yaml is changed
- series: jammy
bases-index: 0
name: (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.ubuntu-versions.series }}
# juju-snap-channel: ["2.9/stable", "3.1/stable"]
juju-snap-channel: ["3.1/candidate"]
include:
- juju-snap-channel: "3.1/candidate"
agent-version: "3.1.6"
libjuju-version: "3.2.0.1"
# - juju-snap-channel: "2.9/stable"
# agent-version: "2.9.44.0"
# libjuju-version: "2.9.44.0"
name: (GH hosted) ${{ matrix.groups.job_name }} | ${{ matrix.juju-snap-channel }} | ${{ matrix.ubuntu-versions.series }}
needs:
- lint
- unit-test
Expand All @@ -117,7 +132,8 @@ jobs:
uses: charmed-kubernetes/actions-operator@main
with:
provider: lxd
bootstrap-options: "--agent-version 2.9.43"
bootstrap-options: "--agent-version ${{ matrix.agent-version }}"
juju-channel: ${{ matrix.juju-snap-channel }}
- name: Download packed charm(s)
uses: actions/download-artifact@v3
with:
Expand All @@ -136,6 +152,7 @@ jobs:
- name: Run integration tests
run: tox run -e integration -- "${{ matrix.groups.path_to_test_file }}" --group="${{ matrix.groups.group_number }}" -m '${{ steps.select-test-stability.outputs.mark_expression }}' --mysql-charm-series="${{ matrix.ubuntu-versions.series }}" --mysql-charm-bases-index="${{ matrix.ubuntu-versions.bases-index }}"
env:
LIBJUJU_VERSION_SPECIFIER: ${{ matrix.libjuju-version }}
SECRETS_FROM_GITHUB: |
{
"AWS_ACCESS_KEY": "${{ secrets.AWS_ACCESS_KEY }}",
Expand Down
Loading
Loading