Skip to content

Commit 4f067b3

Browse files
committed
Update workflow files
1 parent 2632b95 commit 4f067b3

5 files changed

+17
-16
lines changed

.github/workflows/healthcheck-app-existingVpc-Ubuntu-Thurs.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This workflow will install Python dependencies, run tests and lint with a single version of Python
22
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
3-
name: MATLAB Web App Server Reference Architecture AWS existing VPC Ubuntu us-east-1 region Health Check Test
3+
name: MATLAB Web App Server Reference Architecture AWS existing VPC Ubuntu us-east-1 region Health Check Test
44

55
on:
66
schedule:
@@ -20,7 +20,7 @@ jobs:
2020
python -m pip install --upgrade pip
2121
pip install flake8 pytest
2222
pip install -r ./healthcheck/requirements.txt
23-
23+
2424
- name: Lint with flake8
2525
run: |
2626
# stop the build if there are Python syntax errors or undefined names
@@ -33,4 +33,4 @@ jobs:
3333
export AWS_ACCESS_KEY_ID=${{ secrets.aws_access_key_id }}
3434
export AWS_SECRET_ACCESS_KEY=${{ secrets.aws_secret_access_key }}
3535
export AWS_REGION="us-east-1"
36-
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairName }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} ${{ secrets.SSLCertificateARN }} "us-east-1" "Ubuntu"
36+
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairName }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} "us-east-1" "Ubuntu"

.github/workflows/healthcheck-app-existingVpc-Win-Tue.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python -m pip install --upgrade pip
2121
pip install flake8 pytest
2222
pip install -r ./healthcheck/requirements.txt
23-
23+
2424
- name: Lint with flake8
2525
run: |
2626
# stop the build if there are Python syntax errors or undefined names
@@ -33,4 +33,4 @@ jobs:
3333
export AWS_ACCESS_KEY_ID=${{ secrets.aws_access_key_id }}
3434
export AWS_SECRET_ACCESS_KEY=${{ secrets.aws_secret_access_key }}
3535
export AWS_REGION="eu-west-1"
36-
python test_webappserver_refarch_existingvpc.py ${{ secrets.KeyPairNameIreland }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} ${{ secrets.SSLCertificateARNIreland }} "eu-west-1" "Windows"
36+
python test_webappserver_refarch_existingvpc.py ${{ secrets.KeyPairNameIreland }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} "eu-west-1" "Windows"

.github/workflows/healthcheck-app-newVpc-Ubuntu-Mon.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
python -m pip install --upgrade pip
2323
pip install flake8 pytest
2424
pip install -r ./healthcheck/requirements.txt
25-
25+
2626
- name: Lint with flake8
2727
run: |
2828
# stop the build if there are Python syntax errors or undefined names
@@ -35,4 +35,4 @@ jobs:
3535
export AWS_ACCESS_KEY_ID=${{ secrets.aws_access_key_id }}
3636
export AWS_SECRET_ACCESS_KEY=${{ secrets.aws_secret_access_key }}
3737
export AWS_REGION="us-east-1"
38-
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairName }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} ${{ secrets.SSLCertificateARN }} "us-east-1" "Ubuntu"
38+
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairName }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} "us-east-1" "Ubuntu"

.github/workflows/healthcheck-app-newVpc-Win-Wed.yml

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
python -m pip install --upgrade pip
2121
pip install flake8 pytest
2222
pip install -r ./healthcheck/requirements.txt
23-
23+
2424
- name: Lint with flake8
2525
run: |
2626
# stop the build if there are Python syntax errors or undefined names
@@ -33,4 +33,4 @@ jobs:
3333
export AWS_ACCESS_KEY_ID=${{ secrets.aws_access_key_id }}
3434
export AWS_SECRET_ACCESS_KEY=${{ secrets.aws_secret_access_key }}
3535
export AWS_REGION="ap-northeast-1"
36-
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairNameTokyo }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} ${{ secrets.SSLCertificateARNTokyo }} "ap-northeast-1" "Windows"
36+
python test_mwasrefarch_healthcheck_newvpc.py ${{ secrets.KeyPairNameTokyo }} ${{ secrets.lmpassword }} ${{ secrets.ipaddress }} "ap-northeast-1" "Windows"

healthcheck/test_mwasrefarch_healthcheck_newvpc.py

+8-7
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main(keypairname, password, ipAddress, location_arg, platform_arg):
4040
stack_name = "mwas-refarch-health-check-" + matlab_release + date.today().strftime('%m-%d-%Y') + str(random.randint(1,101))
4141
ct = datetime.datetime.now()
4242
print("Date time before deployment of stack:-", ct)
43-
43+
stack = None
4444
# Deploying the stack
4545
try:
4646
print("deploying the stack")
@@ -50,12 +50,13 @@ def main(keypairname, password, ipAddress, location_arg, platform_arg):
5050
raise (e)
5151
finally:
5252
# Delete the deployment
53-
print("deleting the stack")
54-
deploy.delete_stack(stack)
55-
print("success deleting the stack")
56-
ct = datetime.datetime.now()
57-
print("Date time after deployment and deletion of stack:-", ct)
58-
print("\n\n")
53+
if stack:
54+
print("deleting the stack")
55+
deploy.delete_stack(stack)
56+
print("success deleting the stack")
57+
ct = datetime.datetime.now()
58+
print("Date time after deployment and deletion of stack:-", ct)
59+
print("\n\n")
5960

6061
if __name__ == '__main__':
6162
main(sys.argv[1], sys.argv[2], sys.argv[3], sys.argv[4], sys.argv[5])

0 commit comments

Comments
 (0)