-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d25620d
commit 3b03581
Showing
8 changed files
with
354 additions
and
361 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,9 +12,6 @@ on: | |
- cron: "53 0 * * *" # Daily at 00:53 UTC | ||
# Triggered on push to branch "main" by .github/workflows/release.yaml | ||
workflow_call: | ||
secrets: | ||
CHARMHUB_TOKEN: | ||
required: true | ||
|
||
jobs: | ||
lint: | ||
|
@@ -23,9 +20,11 @@ jobs: | |
timeout-minutes: 5 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Install tox | ||
run: python3 -m pip install tox | ||
uses: actions/checkout@v4 | ||
- name: Install tox & poetry | ||
run: | | ||
pipx install tox | ||
pipx install poetry | ||
- name: Run linters | ||
run: tox run -e lint | ||
|
||
|
@@ -41,8 +40,8 @@ jobs: | |
- name: Check libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" # FIXME: current token will expire in 2023-07-04 | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
credentials: ${{ secrets.CHARMHUB_TOKEN }} # FIXME: current token will expire in 2023-07-04 | ||
github-token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
unit-test: | ||
name: Unit test charm | ||
|
@@ -67,6 +66,7 @@ jobs: | |
actions: write # Needed to manage GitHub Actions cache | ||
|
||
integration-test: | ||
# TODO: use reusable workflow | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,19 @@ on: | |
jobs: | ||
ci-tests: | ||
uses: ./.github/workflows/ci.yaml | ||
secrets: | ||
CHARMHUB_TOKEN: "${{ secrets.CHARMHUB_TOKEN }}" | ||
secrets: inherit | ||
|
||
build: | ||
name: Build charm | ||
# TODO: update version | ||
uses: canonical/data-platform-workflows/.github/workflows/[email protected] | ||
with: | ||
charmcraft-snap-channel: "latest/stable" | ||
|
||
release-charm: | ||
name: Release charm | ||
needs: | ||
- ci-tests | ||
- build | ||
# TODO: update version | ||
uses: canonical/data-platform-workflows/.github/workflows/release_charm.yaml@v5 | ||
with: | ||
channel: 6/edge | ||
|
@@ -35,7 +34,6 @@ jobs: | |
name: Release libraries | ||
runs-on: ubuntu-latest | ||
needs: | ||
- ci-tests | ||
- release-charm | ||
steps: | ||
- name: Checkout | ||
|
@@ -45,5 +43,5 @@ jobs: | |
- name: Release any bumped charm libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.CHARMHUB_TOKEN }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
credentials: ${{ secrets.CHARMHUB_TOKEN }} | ||
github-token: ${{ secrets.GITHUB_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,12 @@ | ||
# Copyright 2022 Canonical Ltd. | ||
# See LICENSE file for licensing details. | ||
|
||
[tool.poetry] | ||
name = "mongos-operator" | ||
# Charm is not packed as a standard Python package; this information is not used | ||
name = "charm" | ||
version = "0.1.0" | ||
description = "" | ||
authors = ["Your Name <[email protected]>"] | ||
readme = "README.md" | ||
authors = [] | ||
|
||
[tool.poetry.dependencies] | ||
python = "^3.10" | ||
|
@@ -27,37 +30,39 @@ typing-extensions = "^4.5.0" | |
parameterized = "^0.9.0" | ||
jsonschema = "^4.20.0" | ||
|
||
|
||
[tool.poetry.group.charm-libs.dependencies] | ||
# data_platform_libs/v0/data_interfaces.py | ||
ops = ">=2.0.0" | ||
# tls_certificates_interface/v1/tls_certificates.py | ||
cryptography = "*" | ||
jsonschema = "*" | ||
|
||
[tool.poetry.group.fmt.dependencies] | ||
[tool.poetry.group.format] | ||
optional = true | ||
|
||
[tool.poetry.group.format.dependencies] | ||
black = "^23.11.0" | ||
ruff = "^0.1.6" | ||
|
||
[tool.poetry.group.lint] | ||
optional = true | ||
|
||
[tool.poetry.group.lint.dependencies] | ||
black = "^23.11.0" | ||
ruff = "^0.1.6" | ||
codespell = "^2.2.6" | ||
pyright = "^1.1.337" | ||
|
||
|
||
[tool.poetry.group.unit.dependencies] | ||
pytest = "^7.4.3" | ||
coverage = "^7.3.2" | ||
jsonschema = "^4.20.0" | ||
pytest-mock = "^3.12.0" | ||
|
||
|
||
[tool.poetry.group.integration.dependencies] | ||
pytest = ">=7.2" | ||
pytest = "^7.4.3" | ||
juju = "^3.2.0" | ||
pytest-operator = ">0.20" | ||
pytest-operator = "^0.28.0" | ||
coverage = "^7.3.2" | ||
protobuf = "3.20" | ||
|
||
|