CI: cover skill and extension tests

This commit is contained in:
Vincent Koc
2026-03-06 11:20:28 -05:00
parent 9aceb51379
commit 6a9deb21b8
3 changed files with 55 additions and 6 deletions

View File

@@ -10,6 +10,7 @@ const { detectChangedScope, listChangedPaths } =
runMacos: boolean;
runAndroid: boolean;
runWindows: boolean;
runSkillsPython: boolean;
};
listChangedPaths: (base: string, head?: string) => string[];
};
@@ -32,6 +33,7 @@ describe("detectChangedScope", () => {
runMacos: true,
runAndroid: true,
runWindows: true,
runSkillsPython: true,
});
});
@@ -41,6 +43,7 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
});
});
@@ -50,6 +53,7 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: true,
runSkillsPython: false,
});
});
@@ -59,12 +63,14 @@ describe("detectChangedScope", () => {
runMacos: true,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
});
expect(detectChangedScope(["apps/shared/OpenClawKit/Sources/Foo.swift"])).toEqual({
runNode: false,
runMacos: true,
runAndroid: true,
runWindows: false,
runSkillsPython: false,
});
});
@@ -75,6 +81,7 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
},
);
});
@@ -85,6 +92,7 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
});
expect(detectChangedScope(["assets/icon.png"])).toEqual({
@@ -92,6 +100,7 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
});
});
@@ -101,6 +110,17 @@ describe("detectChangedScope", () => {
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: false,
});
});
it("runs Python skill tests when skills change", () => {
expect(detectChangedScope(["skills/openai-image-gen/scripts/test_gen.py"])).toEqual({
runNode: true,
runMacos: false,
runAndroid: false,
runWindows: false,
runSkillsPython: true,
});
});