From ccc0e3d76caec6d9b6013d482a3540421b107f43 Mon Sep 17 00:00:00 2001 From: Shuheng Liu Date: Wed, 4 Dec 2024 10:40:51 -0500 Subject: [PATCH] feat(ci): allow parameterization of package test timeout --- .github/workflows/packages.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/packages.yml b/.github/workflows/packages.yml index 1da9372b..a6fe83a5 100644 --- a/.github/workflows/packages.yml +++ b/.github/workflows/packages.yml @@ -12,6 +12,11 @@ on: required: true type: number default: 1 + timeoutSeconds: + description: "Timeout in seconds for each test" + required: true + type: number + default: 120 jobs: matrix-setup: @@ -114,7 +119,7 @@ jobs: echo "::group::Test package $package" set +e - timeout 60s docker exec -i $CONTAINER iris session IRIS <<- EOF + timeout ${{ inputs.timeoutSeconds }}s docker exec -i $CONTAINER iris session IRIS <<- EOF zpm "install $package":1 zpm "$package test -only ${{ env.test-flags }}":1:1 halt