Skip to content

Commit

Permalink
Merge pull request #45 from hassan-cevo/fixed-pipenv-version-in-insta…
Browse files Browse the repository at this point in the history
…llation-instructions

pipenv set to version 2023.7.4 in install
  • Loading branch information
iandees authored Sep 9, 2023
2 parents 4e12bdc + afef2af commit d960267
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 30 deletions.
57 changes: 28 additions & 29 deletions .github/workflows/serverless-packaging.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d960267

Please sign in to comment.