diff --git a/.github/workflows/charm_libs.yaml b/.github/workflows/charm_libs.yaml deleted file mode 100644 index b1c108795..000000000 --- a/.github/workflows/charm_libs.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# Copyright 2025 Canonical Ltd. -# See LICENSE file for licensing details. -name: Check libs - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -on: - pull_request: - paths-ignore: - - '.gitignore' - - '.jujuignore' - - 'LICENSE' - - '**.md' - - 'renovate.json' - -jobs: - lib-check: - name: Check libraries - runs-on: ubuntu-latest - timeout-minutes: 5 - if: ${{ github.event.pull_request.head.repo.full_name == 'canonical/mysql-router-k8s-operator' }} - steps: - - name: Checkout - uses: actions/checkout@v4 - with: - fetch-depth: 0 - - name: Check libs - uses: canonical/charming-actions/check-libraries@2.7.0 - with: - credentials: "${{ secrets.CHARMHUB_TOKEN }}" - github-token: "${{ secrets.GITHUB_TOKEN }}" diff --git a/.github/workflows/check_pr.yaml b/.github/workflows/check_pr.yaml deleted file mode 100644 index beaa1541a..000000000 --- a/.github/workflows/check_pr.yaml +++ /dev/null @@ -1,18 +0,0 @@ -# Copyright 2025 Canonical Ltd. -# See LICENSE file for licensing details. -name: Check pull request - -on: - pull_request: - types: - - opened - - labeled - - unlabeled - - edited - branches: - - main - -jobs: - check-pr: - name: Check pull request - uses: canonical/data-platform-workflows/.github/workflows/check_charm_pr.yaml@v31.0.0 diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 1d8b214a5..21f711320 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -2,10 +2,6 @@ # See LICENSE file for licensing details. name: Tests -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - on: pull_request: schedule: @@ -18,46 +14,18 @@ on: value: ${{ jobs.build.outputs.artifact-prefix }} jobs: - lint: - name: Lint - runs-on: ubuntu-latest - timeout-minutes: 5 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install tox & poetry - run: | - pipx install tox - pipx install poetry - - name: Run linters - run: tox run -e lint - - unit-test: - name: Unit test charm - runs-on: ubuntu-22.04 # TODO: use ubuntu-latest after fixing pathlib issue on python 3.12 - timeout-minutes: 20 - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Install tox & poetry - run: | - pipx install tox - pipx install poetry - - name: Run tests - run: tox run -e unit - build: name: Build charm uses: canonical/data-platform-workflows/.github/workflows/build_charm.yaml@v31.0.0 - integration-test: - name: Integration test charm + release: + name: Release charm needs: - - lint - - unit-test - build - uses: ./.github/workflows/integration_test.yaml + uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v31.0.0 with: + channel: 8.0/edge/test-refresh-v3-uncaught artifact-prefix: ${{ needs.build.outputs.artifact-prefix }} - permissions: - contents: write # Needed for Allure Report + create-git-tags: false + secrets: + charmhub-token: ${{ secrets.CHARMHUB_TOKEN }} diff --git a/refresh_versions.toml b/refresh_versions.toml index d852d9fdf..7e48d10e1 100644 --- a/refresh_versions.toml +++ b/refresh_versions.toml @@ -2,4 +2,4 @@ charm_major = 1 workload = "8.0.41" # autogenerated -charm = "8.0/1.0.0" +charm = "8.0/1.3.0" diff --git a/src/charm.py b/src/charm.py index b1db808c9..f9aaafd8f 100755 --- a/src/charm.py +++ b/src/charm.py @@ -119,6 +119,7 @@ def __init__(self, *args) -> None: self._reconcile_allowed = False else: self._reconcile_allowed = True + raise Exception @property def _subordinate_relation_endpoint_names(self) -> typing.Optional[typing.Iterable[str]]: