Skip to content

Commit 9568454

Browse files
Updated python version to 3.13
* Updated python version to 3.13 * Added run for newvpc-win-wed workflow * Removed push for three worflows
1 parent c9c55d4 commit 9568454

7 files changed

+25
-17
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: MATLAB Production Server Ref Arch AWS existing VPC Health Check Test eu-west on Ubuntu
44

55
on:
6-
push:
6+
workflow_dispatch:
77
schedule:
88
- cron: '0 15 * * 2'
99
jobs:
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up Python 3.8
15+
- name: Set up Python 3.13
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: '3.13'
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: MATLAB Production Server Ref Arch AWS existing VPC Health Check Test us-east on Windows
44

55
on:
6-
push:
6+
workflow_dispatch:
77
schedule:
88
- cron: '0 15 * * 4'
99
jobs:
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v4
15-
- name: Set up Python 3.8
15+
- name: Set up Python 3.13
1616
uses: actions/setup-python@v4
1717
with:
18-
python-version: 3.8
18+
python-version: '3.13'
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip

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

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
name: MATLAB Production Server Ref Arch AWS new VPC Health Check Test us-east on Ubuntu
44

55
on:
6+
workflow_dispatch:
67
push:
78
schedule:
89
- cron: '0 15 * * 1'
@@ -12,10 +13,10 @@ jobs:
1213

1314
steps:
1415
- uses: actions/checkout@v2
15-
- name: Set up Python 3.8
16+
- name: Set up Python 3.13
1617
uses: actions/setup-python@v2
1718
with:
18-
python-version: 3.8
19+
python-version: '3.13'
1920
- name: Install dependencies
2021
run: |
2122
python -m pip install --upgrade pip

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
name: MATLAB Production Server Ref Arch AWS new VPC Health Check Test ap-northeast on Windows
44

55
on:
6-
push:
6+
workflow_dispatch:
77
schedule:
88
- cron: '0 15 * * 3'
99
jobs:
@@ -12,10 +12,10 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@v2
15-
- name: Set up Python 3.8
15+
- name: Set up Python 3.13
1616
uses: actions/setup-python@v2
1717
with:
18-
python-version: 3.8
18+
python-version: '3.13'
1919
- name: Install dependencies
2020
run: |
2121
python -m pip install --upgrade pip
@@ -29,6 +29,7 @@ jobs:
2929
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
3030
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3131
- name: MPS Ref Arch AWS new VPC Health Check Test ap-northeast on Windows
32+
run: |
3233
cd healthcheck
3334
export AWS_ACCESS_KEY_ID=${{ secrets.aws_access_key_id }}
3435
export AWS_SECRET_ACCESS_KEY=${{ secrets.aws_secret_access_key }}

healthcheck/requirements.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
boto3
2-
botocore
3-
paramiko
4-
requests
1+
boto3==1.39.1
2+
botocore==1.39.1
3+
paramiko==3.5.1
4+
requests==2.32.4

healthcheck/test_healthcheck_existing_vpc.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,10 @@ def main(keypairname, password, ipAddress, SSLCertificateARN, region, platform):
3333
# Find latest MATLAB release from Github page and get template url text
3434
res = requests.get(f"https://github.com/mathworks-ref-arch/{ref_arch_name}/blob/master/releases/")
3535

36-
latest_releases = [re.findall("releases/(R\d{4}[ab]\\b)", res.text)[-1], re.findall("releases/(R\d{4}[ab]\\b)", res.text)[-2]]
36+
latest_releases = [
37+
re.findall(r"releases/(R\d{4}[ab]\b)", res.text)[-1],
38+
re.findall(r"releases/(R\d{4}[ab]\b)", res.text)[-2]
39+
]
3740

3841
for i in range(2):
3942
matlab_release = latest_releases[i]

healthcheck/test_healthcheck_new_vnet.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,10 @@ def main(keypairname, password, ipAddress, SSLCertificateARN, region, platform):
3030
# Find latest MATLAB release from Github page and get template url text
3131
res = requests.get(f"https://github.com/mathworks-ref-arch/{ref_arch_name}/blob/master/releases/")
3232

33-
latest_releases = [re.findall("releases/(R\d{4}[ab]\\b)", res.text)[-1], re.findall("releases/(R\d{4}[ab]\\b)", res.text)[-2]]
33+
latest_releases = [
34+
re.findall(r"releases/(R\d{4}[ab]\b)", res.text)[-1],
35+
re.findall(r"releases/(R\d{4}[ab]\b)", res.text)[-2]
36+
]
3437
for i in range(2):
3538
matlab_release = latest_releases[i]
3639
print("Testing Health Check Release: " + matlab_release + "\n")

0 commit comments

Comments
 (0)