Skip to content

Commit 4c2a874

Browse files
committed
chore: add operator integration tests workflow
Signed-off-by: kramaranya <kramaranya15@gmail.com>
1 parent 7dd659d commit 4c2a874

3 files changed

Lines changed: 27 additions & 1 deletion

File tree

.github/policy.rego

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -308,6 +308,7 @@ jobs_without_permissions(jobs) := {job_id |
308308
jobs_without_timeout(jobs) := {job_id |
309309
some job_id, job in jobs
310310
not job["timeout-minutes"]
311+
not job.uses
311312
}
312313

313314
ubuntu_slim_jobs_with_long_timeout(jobs) := {job_id |
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: Operator Integration Tests
2+
3+
on:
4+
pull_request:
5+
6+
push:
7+
branches:
8+
- master
9+
- main
10+
- rhoai-*
11+
12+
workflow_dispatch:
13+
14+
defaults:
15+
run:
16+
shell: bash
17+
18+
jobs:
19+
integration-tests:
20+
uses: opendatahub-io/mlflow-operator/.github/workflows/integration-tests.yml@d76a54cb14617d048ed64c3936fc4702efcc4636
21+
permissions:
22+
contents: read
23+
with:
24+
mlflow_repository: ${{ github.repository }}
25+
mlflow_ref: ${{ github.ref }}

dev/check_actions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ def _iter_actions(path: Path) -> Iterator[ActionRef]:
111111
for lineno, line in enumerate(f, start=1):
112112
if m := _USES_RE.match(line):
113113
action = m.group("action")
114-
if not action.startswith("./"):
114+
if not action.startswith("./") and "/.github/workflows/" not in action:
115115
prefix = f"{path}:{lineno}: {line.strip()!r}"
116116
yield ActionRef(prefix, action, m.group("ref"), m.group("comment"))
117117

0 commit comments

Comments
 (0)