-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #130 from canonical/main
Merge `main` into `track/0.10`
- Loading branch information
Showing
36 changed files
with
1,678 additions
and
433 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 |
---|---|---|
@@ -1,31 +1,28 @@ | ||
# reusable workflow triggered by other actions | ||
name: Continuous Integration | ||
name: CI | ||
|
||
on: | ||
workflow_call: | ||
secrets: | ||
charmcraft-credentials: | ||
CHARMCRAFT_CREDENTIALS: | ||
required: true | ||
|
||
jobs: | ||
|
||
lib-check: | ||
name: Check libraries | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
- name: Check libs | ||
uses: canonical/charming-actions/[email protected] | ||
with: | ||
credentials: "${{ secrets.charmcraft-credentials }}" | ||
github-token: "${{ secrets.GITHUB_TOKEN }}" | ||
|
||
strategy: | ||
matrix: | ||
charm: | ||
- kserve-controller | ||
- kserve-web-app | ||
uses: canonical/charmed-kubeflow-workflows/.github/workflows/_quality-checks.yaml@main | ||
secrets: inherit | ||
with: | ||
charm-path: ./charms/${{ matrix.charm }} | ||
|
||
lint: | ||
name: Lint Code | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
# TODO: add web-app once changes in canonical/kserve-operators#2 and #3 | ||
|
@@ -38,7 +35,7 @@ jobs: | |
|
||
unit: | ||
name: Unit Test | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
# TODO: add web-app once changes in canonical/kserve-operators#2 and #3 | ||
|
@@ -51,7 +48,7 @@ jobs: | |
|
||
charm-integration: | ||
name: Individual Integration Tests | ||
runs-on: ubuntu-latest | ||
runs-on: ubuntu-20.04 | ||
strategy: | ||
matrix: | ||
# TODO: add web-app once changes in canonical/kserve-operators#2 and #3 | ||
|
@@ -66,9 +63,10 @@ jobs: | |
uses: charmed-kubernetes/actions-operator@main | ||
with: | ||
provider: microk8s | ||
channel: 1.25/stable | ||
channel: 1.24/stable | ||
# Pinned until this bug is resolved: https://bugs.launchpad.net/juju/+bug/1992833 | ||
bootstrap-options: "--agent-version=2.9.34" | ||
microk8s-addons: "dns storage rbac metallb:10.64.140.43-10.64.140.49" | ||
charmcraft-channel: latest/candidate | ||
- run: tox -e ${{ matrix.charm }}-integration | ||
|
||
|
@@ -77,6 +75,14 @@ jobs: | |
run: kubectl get all -A | ||
if: failure() | ||
|
||
- name: Get inference servers | ||
run: kubectl get inferenceservices -A | ||
if: failure() | ||
|
||
- name: Get events | ||
run: kubectl get events -A | ||
if: failure() | ||
|
||
- name: Describe deployments | ||
run: kubectl describe deployments -A | ||
if: failure() | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,31 +1,28 @@ | ||
name: Publish to edge if tests passed | ||
name: On Push | ||
|
||
# On push to a "special" branch, we: | ||
# * always publish to charmhub at latest/edge/branchname | ||
# * always run tests | ||
# where a "special" branch is one of main/master or track/**, as | ||
# where a "special" branch is one of main or track/**, as | ||
# by convention these branches are the source for a corresponding | ||
# charmhub edge channel. | ||
|
||
on: | ||
push: | ||
branches: | ||
- master | ||
- main | ||
- track/** | ||
- main | ||
- track/** | ||
|
||
jobs: | ||
|
||
tests: | ||
name: Run Tests | ||
uses: ./.github/workflows/integrate.yaml | ||
secrets: | ||
charmcraft-credentials: "${{ secrets.CHARMCRAFT_CREDENTIALS }}" | ||
secrets: inherit | ||
|
||
# publish runs in series with tests, and only publishes if tests passes | ||
publish-charm: | ||
name: Publish Charm | ||
needs: tests | ||
uses: ./.github/workflows/publish.yaml | ||
secrets: | ||
charmcraft-credentials: "${{ secrets.CHARMCRAFT_CREDENTIALS }}" | ||
secrets: inherit |
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
Oops, something went wrong.