chore(deps): Update client-go and controller-runtime #860
Workflow file for this run
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: [master] | |
# Run tests for any PRs which change the backend code | |
pull_request: | |
paths: | |
- '.github/workflows/backend.yml' | |
- 'go.mod' | |
- 'backend/**' | |
- '.github/resources/**' | |
- 'manifests/kustomize/**' | |
env: | |
GITHUB_ACTION: "true" | |
SETUPTOOLS_USE_DISTUTILS: "stdlib" | |
jobs: | |
run-go-unittests: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Install Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version-file: go.mod | |
- name: "run go unit tests" | |
run: go test -v -cover ./backend/... | |
backend-integration: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Python 3.9 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: '3.9' | |
- name: Install sdk | |
run: | | |
python3 -m venv .venv | |
. .venv/bin/activate | |
pip install -e sdk/python | |
- name: Create KFP cluster | |
uses: ./.github/actions/kfp-tekton-cluster | |
- name: "flip coin test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-flip-coin.sh" ./.github/resources/scripts/e2e-test.sh | |
- name: "static loop test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-static-loop.sh" ./.github/resources/scripts/e2e-test.sh | |
- name: "dynamic loop test" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-dynamic-loop.sh" ./.github/resources/scripts/e2e-test.sh | |
- name: "use env" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-env.sh" ./.github/resources/scripts/e2e-test.sh | |
- name: "use volume" | |
run: | | |
. .venv/bin/activate | |
TEST_SCRIPT="test-volume.sh" ./.github/resources/scripts/e2e-test.sh | |
- name: Collect test results | |
if: always() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: kfp-tekton-backend-artifacts | |
path: /tmp/tmp.*/* |