From 0b434056fa9f48849110dc4f820586eb24dc877e Mon Sep 17 00:00:00 2001 From: Emily Yang Date: Wed, 1 May 2024 14:01:38 -0400 Subject: [PATCH] update python version from 3.8 to 3.11 --- .github/workflows/unit-test.yml | 8 ++++---- functions/.pyproject.toml | 2 +- functions/Pipfile | 6 +++--- main.tf | 2 +- 4 files changed, 9 insertions(+), 9 deletions(-) diff --git a/.github/workflows/unit-test.yml b/.github/workflows/unit-test.yml index 450b8a00..e300cca5 100644 --- a/.github/workflows/unit-test.yml +++ b/.github/workflows/unit-test.yml @@ -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: | diff --git a/functions/.pyproject.toml b/functions/.pyproject.toml index c0374cea..1b28df83 100644 --- a/functions/.pyproject.toml +++ b/functions/.pyproject.toml @@ -1,6 +1,6 @@ [tool.black] line-length = 120 -target-version = ['py38'] +target-version = ['py311'] include = '\.pyi?$' verbose = true exclude = ''' diff --git a/functions/Pipfile b/functions/Pipfile index af8ac944..7c2a6f9a 100644 --- a/functions/Pipfile +++ b/functions/Pipfile @@ -6,8 +6,8 @@ name = "pypi" [packages] [dev-packages] -boto3 = "~=1.20" -botocore = "~=1.23" +boto3 = "~=1.34" +botocore = "~=1.34" black = "*" flake8 = "*" isort = "*" @@ -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" diff --git a/main.tf b/main.tf index 6d03d7a4..54149a8a 100644 --- a/main.tf +++ b/main.tf @@ -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