diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index ab0bf17..80c466c 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Set environment based on branch run: | @@ -24,14 +24,14 @@ jobs: fi - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: 3.9 @@ -41,9 +41,9 @@ jobs: python helpers/update_pyquarc.py --force - name: Use Node.js - uses: actions/setup-node@v2 + uses: actions/setup-node@v5 with: - node-version: "14.15.1" + node-version: "20" - name: Install CDK run: | diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index d14e2ff..64e98ea 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -10,18 +10,18 @@ jobs: steps: - name: Check out Git repository - uses: actions/checkout@v2 + uses: actions/checkout@v5 - name: Set up Python - uses: actions/setup-python@v1 + uses: actions/setup-python@v6 with: - python-version: 3.8 + python-version: 3.9 - name: Install Python dependencies run: pip install black flake8 - name: Run linters - uses: wearerequired/lint-action@v1 + uses: wearerequired/lint-action@v2 with: black: true flake8: true diff --git a/.github/workflows/update_pyquarc.yml b/.github/workflows/update_pyquarc.yml index 38f35be..22a9f31 100644 --- a/.github/workflows/update_pyquarc.yml +++ b/.github/workflows/update_pyquarc.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v5 - name: Set environment based on branch run: | @@ -21,14 +21,14 @@ jobs: fi - name: Configure AWS Credentials - uses: aws-actions/configure-aws-credentials@v1 + uses: aws-actions/configure-aws-credentials@v4 with: aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} aws-region: ${{ secrets.AWS_REGION }} - name: Setup python - uses: actions/setup-python@v2 + uses: actions/setup-python@v6 with: python-version: 3.9 diff --git a/deploy/app.py b/deploy/app.py index 3385298..857af67 100644 --- a/deploy/app.py +++ b/deploy/app.py @@ -6,7 +6,6 @@ from deploy.stack import AppStack - app = App() AppStack(app, f"{APP_NAME}-{ENV}") diff --git a/deploy/deploy/stack.py b/deploy/deploy/stack.py index e463c85..76ac630 100644 --- a/deploy/deploy/stack.py +++ b/deploy/deploy/stack.py @@ -5,7 +5,6 @@ aws_lambda as lambda_, aws_apigateway as apigateway, BundlingOptions, - DockerImage, ) @@ -37,8 +36,10 @@ def __init__(self, scope, construct_id, **kwargs): bundling=BundlingOptions( image=lambda_.Runtime.PYTHON_3_9.bundling_image, command=[ - "sh", "-c", "pip install -r requirements.txt -t /asset-output && cp -au . /asset-output" - ] + "sh", + "-c", + "pip install -r requirements.txt -t /asset-output && cp -au . /asset-output", + ], ), ), runtime=lambda_.Runtime.PYTHON_3_9,