// Test gate for the Hermes code-repair demo.
podTemplate(cloud: 'kubernetes', yaml: """
apiVersion: v1
kind: Pod
spec:
  serviceAccountName: jenkins
  securityContext:
    runAsUser: 1000
    runAsGroup: 1000
    fsGroup: 1000
    fsGroupChangePolicy: "OnRootMismatch"
  nodeSelector:
    kubernetes.io/arch: arm64
    node-role.kubernetes.io/worker: "true"
  containers:
    - name: python
      image: python:3.12-slim
      command: ["sleep"]
      args: ["3600"]
      resources:
        requests:
          cpu: 100m
          memory: 128Mi
        limits:
          cpu: 500m
          memory: 512Mi
""") {
  node(POD_LABEL) {
    container('python') {
      stage('Checkout') {
        checkout scm
      }
      stage('tests') {
        sh 'pip install --quiet pytest'
        sh 'python -m pytest -v --junitxml=build/junit.xml'
      }
    }
  }
}
