Skip to content

Commit

Permalink
Update python version (#21)
Browse files Browse the repository at this point in the history
python 3.8 has been deprecated.  Update to use python 3.11
  • Loading branch information
zaro0508 authored Oct 18, 2024
1 parent 1b83367 commit 136e8d2
Show file tree
Hide file tree
Showing 5 changed files with 91 additions and 101 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
2 changes: 1 addition & 1 deletion Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ coverage = "~=7.0"
crhelper = "~=2.0.10"

[requires]
python_version = "3.8"
python_version = "3.11"
182 changes: 86 additions & 96 deletions Pipfile.lock

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

2 changes: 1 addition & 1 deletion template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Resources:
Properties:
CodeUri: policy_maker/
Handler: app.handler
Runtime: python3.8
Runtime: python3.11
Role: !GetAtt FunctionRole.Arn

FunctionRole:
Expand Down

0 comments on commit 136e8d2

Please sign in to comment.