Skip to content

Commit 19eef7a

Browse files
authored
Merge pull request #4545 from communitybridge/feat/fix-python-deployment
Fix Dev Deployment
2 parents 9a24cf6 + f22467f commit 19eef7a

File tree

2 files changed

+14
-7
lines changed

2 files changed

+14
-7
lines changed

.github/workflows/deploy-dev.yml

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,28 +22,32 @@ jobs:
2222
runs-on: ubuntu-latest
2323
environment: dev
2424
steps:
25-
- uses: actions/checkout@v3
25+
- uses: actions/checkout@v4
2626
- name: Setup go
27-
uses: actions/setup-go@v3
27+
uses: actions/setup-go@v4
2828
with:
2929
go-version: '1.20.1'
3030
- name: Go Version
3131
run: go version
32+
3233
- name: Setup Node
33-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3435
with:
3536
node-version: '18'
37+
3638
- name: Setup python
3739
uses: actions/setup-python@v4
3840
with:
39-
python-version: '3.7'
41+
python-version: '3.8'
4042
cache: 'pip'
43+
4144
- name: Configure AWS Credentials
4245
uses: aws-actions/configure-aws-credentials@v4
4346
with:
4447
audience: sts.amazonaws.com
4548
role-to-assume: arn:aws:iam::395594542180:role/github-actions-deploy
4649
aws-region: us-east-1
50+
4751
- name: Cache Go modules
4852
uses: actions/cache@v2
4953
with:
@@ -64,11 +68,11 @@ jobs:
6468
- name: Python Setup
6569
working-directory: cla-backend
6670
run: |
71+
python -m venv venv
72+
source venv/bin/activate
6773
pip install --upgrade pip
6874
pip install -r requirements.txt
6975
70-
71-
7276
- name: Python Lint
7377
working-directory: cla-backend
7478
run: |
@@ -77,6 +81,9 @@ jobs:
7781
- name: Python Test
7882
working-directory: cla-backend
7983
run: |
84+
python -m venv venv
85+
source venv/bin/activate
86+
pip install pytest
8087
pytest "cla/tests" -p no:warnings
8188
env:
8289
PLATFORM_GATEWAY_URL: https://api-gw.dev.platform.linuxfoundation.org

cla-backend/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"license": "MIT",
55
"author": "The Linux Foundation",
66
"engines": {
7-
"node": ">=16"
7+
"node": ">=18"
88
},
99
"scripts": {
1010
"sls": "./node_modules/serverless/bin/serverless.js",

0 commit comments

Comments
 (0)