Skip to content

Commit

Permalink
Add more bits for running everything in a kubernetes cluster
Browse files Browse the repository at this point in the history
  • Loading branch information
benclifford committed Jun 10, 2024
1 parent 16c0a49 commit b03615a
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci-k8s.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -31,3 +31,12 @@ jobs:
run: |
kind load docker-image parsl:ci
- name: set liberal permissions
run: |
kubectl create clusterrolebinding serviceaccounts-cluster-admin --clusterrole=cluster-admin --group=system:serviceaccounts
- name: launch pytest Job
run: |
kubectl create -f ./pytest-task.yaml
- name: wait for pytest Job
kubectl wait --timeout=600s --for=condition=Complete Job pytest
14 changes: 14 additions & 0 deletions pytest-task.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
apiVersion: batch/v1
kind: Job
metadata:
name: pytest
spec:
activeDeadlineSeconds: 600
template:
spec:
restartPolicy: Never
containers:
- name: pytest
image: parslimg:a
command: ["bash", "runme.sh"]

7 changes: 7 additions & 0 deletions runme.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
#!/bin/bash

source /venv/bin/activate

pytest parsl/tests/ --config ./htex_k8s_kind.py -k 'not issue3328 and not staging_required and not shared_fs' -x


0 comments on commit b03615a

Please sign in to comment.