diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml index 3159c9f..2f7fd4a 100644 --- a/.github/workflows/python-package.yml +++ b/.github/workflows/python-package.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: ['3.10' ] + python-version: ['3.12' ] steps: - uses: actions/checkout@v3 @@ -29,14 +29,6 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics -# - name: Test with pytest -# run: | -# coverage run -m pytest -# coverage lcov -o ./coverage/lcov.info -# - name: Coveralls -# uses: coverallsapp/github-action@master -# with: -# github-token: ${{ secrets.GITHUB_TOKEN }} create_release: needs: build diff --git a/Dockerfile b/Dockerfile index 9022471..41ca725 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM amazon/aws-lambda-python:3.10 +FROM amazon/aws-lambda-python:3.12 RUN yum -y update RUN yum -y install zip diff --git a/requirements-dev.txt b/requirements-dev.txt index 75f42c0..d415b97 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -1,4 +1,2 @@ -boto3==1.26.165 -pytest==7.4.3 +boto3==1.40.29 flake8==6.1.0 -coverage==7.3.2 diff --git a/requirements.txt b/requirements.txt index e401d7c..dbf3250 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,2 +1,2 @@ -cumulus_message_adapter_python==2.2.0 -psycopg2-binary==2.9.9 +cumulus_message_adapter_python==2.4.0 +psycopg2-binary==2.9.11 diff --git a/task/main.py b/task/main.py index 46352b8..91f4831 100644 --- a/task/main.py +++ b/task/main.py @@ -12,7 +12,7 @@ from psycopg2 import sql def get_db_params(): - sm = boto3.client('secretsmanager') + sm = boto3.client(service_name='secretsmanager', region_name='us-west-2') secrets_arn = os.getenv('CUMULUS_CREDENTIALS_ARN', None) secrets = json.loads(sm.get_secret_value(SecretId=secrets_arn).get('SecretString'))