Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10' ]
python-version: ['3.12' ]

steps:
- uses: actions/checkout@v3
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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
Expand Down
4 changes: 1 addition & 3 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,2 @@
boto3==1.26.165
pytest==7.4.3
boto3==1.40.29
flake8==6.1.0
coverage==7.3.2
4 changes: 2 additions & 2 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -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
2 changes: 1 addition & 1 deletion task/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'))

Expand Down