Skip to content

Commit

Permalink
update python version from 3.8 to 3.11
Browse files Browse the repository at this point in the history
  • Loading branch information
yangx17 committed May 1, 2024
1 parent 7e1676f commit 0b43405
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/unit-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python 3.8
uses: actions/setup-python@v2
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.8
python-version: 3.11

- name: Install pipenv
run: |
Expand Down
2 changes: 1 addition & 1 deletion functions/.pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.black]
line-length = 120
target-version = ['py38']
target-version = ['py311']
include = '\.pyi?$'
verbose = true
exclude = '''
Expand Down
6 changes: 3 additions & 3 deletions functions/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ name = "pypi"
[packages]

[dev-packages]
boto3 = "~=1.20"
botocore = "~=1.23"
boto3 = "~=1.34"
botocore = "~=1.34"
black = "*"
flake8 = "*"
isort = "*"
Expand All @@ -18,7 +18,7 @@ radon = "*"
snapshottest = "~=0.6"

[requires]
python_version = "3.8"
python_version = "3.11"

[scripts]
test = "python3 -m pytest --cov --cov-report=term"
Expand Down
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ module "lambda" {
handler = "${local.lambda_handler}.lambda_handler"
source_path = var.lambda_source_path != null ? "${path.root}/${var.lambda_source_path}" : "${path.module}/functions/notify_slack.py"
recreate_missing_package = var.recreate_missing_package
runtime = "python3.8"
runtime = "python3.11"
timeout = 30
kms_key_arn = var.kms_key_arn
reserved_concurrent_executions = var.reserved_concurrent_executions
Expand Down

0 comments on commit 0b43405

Please sign in to comment.