-
Notifications
You must be signed in to change notification settings - Fork 446
/
Copy pathaction.yaml
59 lines (49 loc) · 1.52 KB
/
action.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
name: "Compatibility Test"
description: "Run compatibility tests"
inputs:
ray_version:
description: "version of ray"
required: true
runs:
using: "composite"
steps:
- name: Get revision SHA
id: vars
run: echo "::set-output name=sha_short::$(git rev-parse --short HEAD)"
shell: bash
- name: Install Kind
run: |
curl -Lo ./kind https://kind.sigs.k8s.io/dl/v0.22.0/kind-linux-amd64
chmod +x ./kind
sudo mv ./kind /usr/local/bin/kind
shell: bash
- name: Checkout Python
uses: actions/checkout@v2
- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install Python dependencies
run: pip install -r ./tests/config/requirements.txt
shell: bash
- name: Set up Docker
uses: docker-practice/actions-setup-docker@master
- name: Download Artifact Operator
uses: actions/download-artifact@v4
with:
name: operator_img
path: /tmp
- name: Load KubeRay Operator Docker Image
run: |
docker load --input /tmp/operator.tar
docker images ls -a
shell: bash
- name: Run ${{ inputs.ray_version }} compatibility test
# compatibility test depends on operator & apiserver images built in previous steps.
run: |
echo "Using Ray image ${{ inputs.ray_version }}"
PYTHONPATH="./tests/" \
RAY_IMAGE="rayproject/ray:${{ inputs.ray_version }}" \
OPERATOR_IMAGE="kuberay/operator:${{ steps.vars.outputs.sha_short }}" \
python ./tests/compatibility-test.py
shell: bash