(cherrypick): fix(manifest): update manifests for proper third party app role (#1352) #66
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
name: KFP Tekton backend unit tests | |
on: | |
push: | |
branches: [v2-integration] | |
# Run tests for any PRs which change the backend code | |
pull_request: | |
paths: | |
- 'go.mod' | |
- 'backend/**' | |
- 'scripts/deploy/github/**' | |
- 'manifests/kustomize/**' | |
env: | |
GITHUB_ACTION: "true" | |
SETUPTOOLS_USE_DISTUTILS: "stdlib" | |
jobs: | |
run-go-unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install Go | |
uses: actions/setup-go@v2 | |
with: | |
go-version: 1.20.x | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: "run go unit tests" | |
run: go test -v -cover ./backend/... | |
backend-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Create k8s Kind Cluster | |
uses: container-tools/kind-action@v2 | |
with: | |
cluster_name: kfp-tekton | |
kubectl_version: v1.26.3 | |
version: v0.17.0 | |
node_image: kindest/node:v1.26.3 | |
- name: build images | |
run: ./scripts/deploy/github/build-images.sh | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.10' | |
- name: "deploy kfp-tekton" | |
run: ./scripts/deploy/github/deploy-kfp.sh | |
- name: Install sdk | |
run: | | |
python3 -m venv .venv | |
. .venv/bin/activate | |
pip install -e sdk/python | |
- name: "flip coin test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-flip-coin.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "static loop test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-static-loop.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "dynamic loop test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-dynamic-loop.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "secret as env" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-secret-as-env.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "secret as volume" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-secret-as-volume.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "use env" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-env.sh" ./scripts/deploy/github/e2e-test.sh | |
- name: "use volume" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-volume.sh" ./scripts/deploy/github/e2e-test.sh |