File tree 2 files changed +13
-7
lines changed
2 files changed +13
-7
lines changed Original file line number Diff line number Diff line change 11
11
permissions :
12
12
contents : read
13
13
14
- env :
15
- SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
16
- SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
17
- SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
18
- SCW_DEFAULT_PROJECT_ID : ${{ secrets.SCW_DEFAULT_PROJECT_ID }}
19
-
20
14
jobs :
21
15
setup-gateway :
22
16
runs-on : self-hosted
28
22
29
23
- name : Deploy Serverless Gateway
30
24
run : poetry run scwgw deploy
25
+ env :
26
+ SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
27
+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
28
+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
31
29
32
30
run-tests :
33
31
needs :
44
42
run : |
45
43
poetry run scwgw remote-config
46
44
poetry run pytest integrations/gateway -n $(nproc --all)
45
+ env :
46
+ SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
47
+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
48
+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
47
49
48
50
teardown-gateway :
49
51
runs-on : self-hosted
61
63
62
64
- name : Delete Serverless Gateway
63
65
run : poetry run scwgw delete
66
+ env :
67
+ SCW_DEFAULT_ORGANIZATION_ID : ${{ secrets.SCW_DEFAULT_ORGANIZATION_ID }}
68
+ SCW_SECRET_KEY : ${{ secrets.SCW_SECRET_KEY }}
69
+ SCW_ACCESS_KEY : ${{ secrets.SCW_ACCESS_KEY }}
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ def __init__(self) -> None:
27
27
# Verify that the CLI is installed and working
28
28
cmd = self ._invoke_cli (["check" ])
29
29
for line in cmd .stdout .splitlines ():
30
- if not line .endswith ("ready" ):
30
+ if "status" in line and not line .endswith ("ready" ):
31
31
click .secho (f"scwgw is not ready: { line } " , fg = "red" )
32
32
raise RuntimeError ("scwgw is not ready" )
33
33
You can’t perform that action at this time.
0 commit comments