From f2d76d7a686acdd679072e4f738437a44e52c2d7 Mon Sep 17 00:00:00 2001 From: Hassan Salimi Date: Tue, 5 Sep 2023 09:53:14 +1000 Subject: [PATCH 1/2] pipenv set to version 2023.7.4 in install --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index f74ed1c..a52902b 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ Sends daily breakdowns of AWS costs to a Slack channel. 1. Install pipenv ``` - pip install pipenv + pip install pipenv==2023.7.4 ``` 1. Install serverless python requirements From afef2af58efbfa106efed9a3bb4490a357361472 Mon Sep 17 00:00:00 2001 From: Hassan Salimi Date: Tue, 5 Sep 2023 10:10:11 +1000 Subject: [PATCH 2/2] pipenv set to version 2023.7.4 in workflow --- .github/workflows/serverless-packaging.yml | 57 +++++++++++----------- 1 file changed, 28 insertions(+), 29 deletions(-) diff --git a/.github/workflows/serverless-packaging.yml b/.github/workflows/serverless-packaging.yml index 8248294..689de21 100644 --- a/.github/workflows/serverless-packaging.yml +++ b/.github/workflows/serverless-packaging.yml @@ -2,42 +2,41 @@ name: Build and Test Serverless Packaging on: push: - branches: [ "master" ] + branches: ["master"] pull_request: - branches: [ "master" ] + branches: ["master"] permissions: contents: read jobs: build: - runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 - - name: Set up Python 3.10 - uses: actions/setup-python@v3 - with: - python-version: "3.10" - - uses: actions/setup-node@v3 - with: - node-version: 16 - cache: 'npm' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install flake8 pipenv - - name: Lint with flake8 - run: | - # stop the build if there are Python syntax errors or undefined names - 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 Serverless packaging - run: | - npm -g install serverless - serverless create --template-path . --path="/tmp/app-aws-cost" --name="app-aws-cost" - cd /tmp/app-aws-cost - serverless plugin install -n serverless-python-requirements - serverless package --stage="prod" --param="slack_url=https://hooks.slack.com/services/xxx/yyy/zzzz" + - uses: actions/checkout@v3 + - name: Set up Python 3.10 + uses: actions/setup-python@v3 + with: + python-version: "3.10" + - uses: actions/setup-node@v3 + with: + node-version: 16 + cache: "npm" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install flake8 pipenv==2023.7.4 + - name: Lint with flake8 + run: | + # stop the build if there are Python syntax errors or undefined names + 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 Serverless packaging + run: | + npm -g install serverless + serverless create --template-path . --path="/tmp/app-aws-cost" --name="app-aws-cost" + cd /tmp/app-aws-cost + serverless plugin install -n serverless-python-requirements + serverless package --stage="prod" --param="slack_url=https://hooks.slack.com/services/xxx/yyy/zzzz"