Repository navigation
74 lines (71 loc) · 2.94 KB
/
Copy pathci-scripts-tests.yml
File metadata and controls
74 lines (71 loc) · 2.94 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
# Presubmit gate for the Python tooling and CI action wiring under .github:
# the unit tests are stdlib-only and use the `*_test.py` suffix, so select
# that pattern explicitly because it is not unittest discover's default.
name: CI Scripts Tests
on:
pull_request:
paths:
- '.github/dependabot.yml'
- '**/go.mod'
- '**/package.json'
- '**/requirements*.txt'
- '**/setup.py'
- '**/pyproject.toml'
- '**/action.yml'
- '**/action.yaml'
- '.pre-commit-config.yaml'
- '.github/actions/create-cluster/**'
- '.github/actions/deploy/**'
- '.github/actions/download-artifact-with-retry/**'
- '.github/resources/curl-retry/**'
- '.github/resources/buildkitd.toml'
- '.github/resources/runtime-base-images.txt'
- '.github/resources/scripts/*.py'
# The observability shell scripts are covered by Python-driven tests.
- '.github/resources/scripts/*.sh'
- '.github/resources/scripts/kfp-readiness/**'
- '.github/actions/junit-summary/**'
- '.github/workflows/ci-checks.yml'
- '.github/workflows/create-manifest.yml'
- '.github/actions/upload-artifact-with-retry/**'
- '.github/actions/test-and-report/**'
- '.github/workflows/api-server-tests.yml'
- '.github/workflows/create-manifest.yml'
- '.github/workflows/e2e-test.yml'
- '.github/workflows/image-builds.yml'
- '.github/workflows/validate-generated-files.yml'
- '.github/workflows/osv-scanner.yml'
- '.github/workflows/build-tools-images.yml'
- '.github/workflows/runtime-base-images.yml'
- '.github/workflows/ci-scripts-tests.yml'
- '.github/workflows/gh-workflow-approve.yml'
- 'manifests/kustomize/third-party/argo/base/workflow-controller-configmap-patch.yaml'
- 'manifests/kustomize/third-party/argo/base/workflow-controller-deployment-patch.yaml'
- 'manifests/kustomize/third-party/argo/base/kustomization.yaml'
- 'manifests/kustomize/third-party/argo/installs/**'
- 'manifests/kustomize/third-party/mysql/base/mysql-deployment.yaml'
- 'backend/Dockerfile'
- 'backend/src/common/types.go'
- 'go.mod'
- 'go.sum'
- 'test/install-argo-cli.sh'
- 'third_party/argo/COMPATIBILITY_VERSION'
- 'third_party/argo/Makefile'
- 'third_party/argo/UPGRADE.md'
- 'third_party/argo/VERSION'
- 'test_data/sdk_compiled_pipelines/valid/critical/modelcar/Dockerfile'
permissions:
contents: read
jobs:
python-script-tests:
name: Run .github scripts unit tests
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v7
- name: Run Python script unit tests
working-directory: .github/resources/scripts
run: python3 -m unittest discover -v -p '*_test.py'
- name: Run JUnit summary action unit tests
working-directory: .github/actions/junit-summary
run: python3 -m unittest discover -v -p '*_test.py'