Skip to content

Commit

Permalink
Update python version (#18)
Browse files Browse the repository at this point in the history
Python 3.8 has been deprecated, updating to python 3.11
  • Loading branch information
zaro0508 authored Oct 23, 2024
1 parent d4e3e0b commit f7d2f0a
Show file tree
Hide file tree
Showing 6 changed files with 111 additions and 98 deletions.
2 changes: 1 addition & 1 deletion .github/actions/sam-build/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ runs:
# Convert Pipfile.lock to requirements.txt for sam
- uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- run: pip install -U pipenv
shell: bash

Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- uses: pre-commit/[email protected]

pytest:
Expand All @@ -23,7 +23,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.8
python-version: 3.11
- run: pip install -U pipenv
- run: pipenv sync --dev
- run: pipenv run coverage run -m pytest tests/ -svv
Expand Down
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ dmypy.json

# generated dynamically from Pipfile
s3objects/requirements.txt

# mac files
.DS_Store
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ boto3 = "~=1.17"
coverage = "~=7.0"

[requires]
python_version = "3.8"
python_version = "3.11"
194 changes: 102 additions & 92 deletions Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Resources:
ResourceFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
CodeUri: s3objects
Handler: resource.handler
Policies: AmazonS3FullAccess

MacroFunction:
Type: AWS::Serverless::Function
Properties:
Runtime: python3.8
Runtime: python3.11
CodeUri: s3objects
Handler: macro.handler
Policies: AmazonS3FullAccess
Expand Down

0 comments on commit f7d2f0a

Please sign in to comment.