diff --git a/.github/workflows/helix-validation.yml b/.github/workflows/helix-validation.yml new file mode 100644 index 0000000000..d37fa4a748 --- /dev/null +++ b/.github/workflows/helix-validation.yml @@ -0,0 +1,13 @@ +name: Helix Validation + +on: + pull_request: + workflow_dispatch: + +jobs: + validate: + if: github.event_name == 'workflow_dispatch' || + (github.base_ref == github.event.repository.default_branch && + github.head_ref == 'docker-golden-solution') + uses: handshake-coding/handshake-orchestration/.github/workflows/helix-validation.yml@main + secrets: inherit diff --git a/.helix/Dockerfile.helix b/.helix/Dockerfile.helix new file mode 100644 index 0000000000..1e51906aa0 --- /dev/null +++ b/.helix/Dockerfile.helix @@ -0,0 +1,19 @@ +FROM python:3.14-slim + +WORKDIR /workspace + +RUN apt-get update && apt-get install -y --no-install-recommends \ + git \ + ca-certificates \ + curl \ + && rm -rf /var/lib/apt/lists/* + +RUN git config --unset-all http.https://github.com/.extraheader || true + +RUN python -m pip install --no-cache-dir "poetry==2.1.3" && \ + poetry config virtualenvs.create false + +COPY . /workspace + +RUN poetry lock --no-interaction --no-ansi +RUN poetry install --no-interaction --no-ansi diff --git a/.helix/metadata.json b/.helix/metadata.json new file mode 100644 index 0000000000..97b508df8b --- /dev/null +++ b/.helix/metadata.json @@ -0,0 +1 @@ +[{"instance_id":"handshake","task_title":"handshake","problem_statement":"","hints":"","repo":"handshake","repo_path_or_url":"handshake","FAIL_TO_PASS":"","PASS_TO_PASS":"","language":"handshake","docker_file":"handshake","run_script":"handshake","task_type":"handshake","task_category":"handshake","repo_category":"handshake","version":"handshake","container_mem":"handshake","container_memswap":"handshake","container_network_needed":"handshake"}] diff --git a/.helix/run-tests-eval.sh b/.helix/run-tests-eval.sh new file mode 100644 index 0000000000..71d099502e --- /dev/null +++ b/.helix/run-tests-eval.sh @@ -0,0 +1,12 @@ +#!/usr/bin/env bash +set -euo pipefail + +cd "$(dirname "$0")/.." + +if [ $# -eq 0 ]; then + pytest + exit 0 +fi + +IFS=',' read -r -a files <<< "$1" +pytest "${files[@]}"