Skip to content

Commit c3fcd31

Browse files
Merge pull request #177 from aws-samples/python_update
Python update to v3.13
2 parents deb3745 + 986adda commit c3fcd31

File tree

25 files changed

+965
-1095
lines changed

25 files changed

+965
-1095
lines changed

.gitea/actions/configure/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ runs:
1616
run: pip install cfn-lint cfn-lint-serverless
1717

1818
- name: Setup NodeJS
19-
uses: actions/setup-node@v5
19+
uses: actions/setup-node@v6
2020
with:
2121
node-version: ${{ env.NODE_VERSION }}
2222
- run: 'echo "NodeJS version: $(node --version)"'
2323

2424
- run: echo "**** Setup uv ****"
25-
- uses: astral-sh/setup-uv@v6
25+
- uses: astral-sh/setup-uv@v7
2626
- run: uv --version
2727

2828
- run: echo "**** Install application dependencies ****"

.gitea/workflows/pipeline.yaml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -112,8 +112,8 @@ jobs:
112112
runs-on: ubuntu-latest
113113
env:
114114
SERVICE_FOLDER: "unicorn_approvals"
115-
PYTHON_VERSION: "3.12"
116-
NODE_VERSION: "22.x"
115+
PYTHON_VERSION: "3.13"
116+
NODE_VERSION: "24.x"
117117
steps:
118118
- uses: actions/checkout@v5
119119

@@ -193,8 +193,8 @@ jobs:
193193
runs-on: ubuntu-latest
194194
env:
195195
SERVICE_FOLDER: "unicorn_contracts"
196-
PYTHON_VERSION: "3.12"
197-
NODE_VERSION: "22.x"
196+
PYTHON_VERSION: "3.13"
197+
NODE_VERSION: "24.x"
198198
steps:
199199
- uses: actions/checkout@v5
200200

@@ -297,8 +297,8 @@ jobs:
297297
runs-on: ubuntu-latest
298298
env:
299299
SERVICE_FOLDER: "unicorn_approvals"
300-
PYTHON_VERSION: "3.12"
301-
NODE_VERSION: "22.x"
300+
PYTHON_VERSION: "3.13"
301+
NODE_VERSION: "24.x"
302302
steps:
303303
- uses: actions/checkout@v5
304304

@@ -445,8 +445,8 @@ jobs:
445445
runs-on: ubuntu-latest
446446
env:
447447
SERVICE_FOLDER: "unicorn_web"
448-
PYTHON_VERSION: "3.12"
449-
NODE_VERSION: "22.x"
448+
PYTHON_VERSION: "3.13"
449+
NODE_VERSION: "24.x"
450450
steps:
451451
- uses: actions/checkout@v5
452452

.github/workflows/build.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,15 @@ jobs:
3030

3131
steps:
3232
- name: Checkout code
33-
uses: actions/checkout@v4
33+
uses: actions/checkout@v6
3434

35-
- name: Set up Python 3.12
36-
uses: actions/setup-python@v4
35+
- name: Set up Python 3.13
36+
uses: actions/setup-python@v6
3737
with:
38-
python-version: 3.12
38+
python-version: 3.13
3939

4040
- name: Install uv
41-
uses: astral-sh/setup-uv@v5
41+
uses: astral-sh/setup-uv@v7
4242
with:
4343
version: 0.7.8
4444

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@ jobs:
2525

2626
steps:
2727
- name: Checkout repository
28-
uses: actions/checkout@v4
28+
uses: actions/checkout@v6
2929

3030
# Initializes the CodeQL tools for scanning.
3131
- name: Initialize CodeQL
32-
uses: github/codeql-action/init@v3
32+
uses: github/codeql-action/init@v4
3333
with:
3434
languages: ${{ matrix.language }}
3535

@@ -49,4 +49,4 @@ jobs:
4949
# ./location_of_script_within_repo/buildscript.sh
5050

5151
- name: Perform CodeQL Analysis
52-
uses: github/codeql-action/analyze@v3
52+
uses: github/codeql-action/analyze@v4

.github/workflows/label_pr_on_title.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
runs-on: ubuntu-latest
2323
steps:
2424
- name: Checkout repository
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@v6
2626
- name: "Label PR based on title"
2727
uses: actions/github-script@v7
2828
env:

.github/workflows/on_label_added.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
issues: write
2424
pull-requests: write
2525
steps:
26-
- uses: actions/checkout@v4
26+
- uses: actions/checkout@v6
2727
# Maintenance: Persist state per PR as an artifact to avoid spam on label add
2828
- name: "Suggest split large Pull Request"
2929
uses: actions/github-script@v7

.github/workflows/on_merged_pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
runs-on: ubuntu-latest
2121
if: needs.get_pr_details.outputs.prIsMerged == 'true'
2222
steps:
23-
- uses: actions/checkout@v4
23+
- uses: actions/checkout@v6
2424
- name: "Label PR related issue for release"
2525
uses: actions/github-script@v7
2626
env:

.github/workflows/on_opened_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
needs: get_pr_details
2020
runs-on: ubuntu-latest
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@v6
2323
- name: "Ensure related issue is present"
2424
uses: actions/github-script@v7
2525
env:
@@ -36,7 +36,7 @@ jobs:
3636
needs: get_pr_details
3737
runs-on: ubuntu-latest
3838
steps:
39-
- uses: actions/checkout@v4
39+
- uses: actions/checkout@v6
4040
- name: "Ensure acknowledgement section is present"
4141
uses: actions/github-script@v7
4242
env:

.github/workflows/record_pr.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ jobs:
99
runs-on: ubuntu-latest
1010

1111
steps:
12-
- uses: actions/checkout@v4
12+
- uses: actions/checkout@v6
1313
- name: "Extract PR details"
1414
uses: actions/github-script@v7
1515
with:
1616
script: |
1717
const script = require('.github/scripts/save_pr_details.js')
1818
await script({github, context, core})
19-
- uses: actions/upload-artifact@v4
19+
- uses: actions/upload-artifact@v6
2020
with:
2121
name: pr
2222
path: pr.txt

.github/workflows/reusable_unit_tests.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,16 +12,22 @@ jobs:
1212
runs-on: ubuntu-latest
1313

1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v6
1616

17-
- uses: actions/setup-python@v4
18-
with: { python-version: 3.12 }
17+
- uses: actions/setup-python@v6
18+
with: { python-version: 3.13 }
1919

2020
- name: Install uv
21-
uses: astral-sh/setup-uv@v5
21+
uses: astral-sh/setup-uv@v7
2222
with:
2323
version: 0.7.8
2424

25+
- name: Install dependencies
26+
run: uv sync --all-extras --dev
27+
working-directory: ./${{ inputs.service_directory }}
28+
2529
- name: Run Unit tests
26-
run: make test
30+
run: make unit-test
2731
working-directory: ./${{ inputs.service_directory }}
32+
env:
33+
AWS_DEFAULT_REGION: us-east-1

0 commit comments

Comments
 (0)