forked from OpenMined/PySyft
-
Notifications
You must be signed in to change notification settings - Fork 0
66 lines (52 loc) · 1.61 KB
/
pr-tests-helm-upgrade.yml
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
60
61
62
63
64
65
66
name: PR Tests - Helm Upgrade
on:
# Re-enable when we have a stable helm chart
# pull_request:
# branches:
# - dev
# paths:
# - packages/grid/helm/syft/**
workflow_dispatch:
inputs:
upgrade_type:
description: "Select upgrade path type"
required: false
default: "BetaToDev"
type: choice
options:
- BetaToDev
- ProdToBeta
- ProdToDev
concurrency:
group: pr-tests-helm-upgrade
cancel-in-progress: true
jobs:
pr-tests-helm-upgrade:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Install dependencies
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
brew update
# Install python deps
python -m pip install --upgrade pip
pip install uv==0.2.17 tox==4.16.0 tox-uv==1.9.0
# Install kubernetes
brew install helm k3d devspace kubectl
- name: Setup cluster
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox -e dev.k8s.start
- name: Upgrade helm chart
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
# default upgrade is beta to dev, but override with input if provided
UPGRADE_TYPE_INPUT=${{ github.event.inputs.upgrade_type }}
export UPGRADE_TYPE=${UPGRADE_TYPE_INPUT:-BetaToDev}
tox -e syft.test.helm.upgrade
- name: Destroy cluster
if: always()
run: |
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv)"
tox -e dev.k8s.destroyall