File tree Expand file tree Collapse file tree 7 files changed +30
-22
lines changed Expand file tree Collapse file tree 7 files changed +30
-22
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,14 @@ jobs:
35
35
run : |
36
36
python mobile.py &
37
37
sleep 10
38
+ - name : Configure AWS Credentials
39
+ uses : aws-actions/configure-aws-credentials@v4
40
+ with :
41
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
42
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
43
+ aws-region : sa-east-1
38
44
- name : Run Coverage Report
39
45
env :
40
- CACHE_BUCKET_ID : ${{ secrets.CACHE_BUCKET_ID }}
41
- CACHE_BUCKET_KEY : ${{ secrets.CACHE_BUCKET_KEY }}
42
46
CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
43
47
run : python -m pytest --cov-report xml --cov=.
44
48
- name : Submit Coverage Report
Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ jobs:
31
31
psql -h localhost -U postgres -d noharm -a -f database/noharm-newuser.sql -v ON_ERROR_STOP=1
32
32
psql -h localhost -U postgres -d noharm -a -f database/noharm-triggers.sql -v ON_ERROR_STOP=1
33
33
psql -h localhost -U postgres -d noharm -a -f database/noharm-insert.sql -v ON_ERROR_STOP=1
34
+ - name : Configure AWS Credentials
35
+ uses : aws-actions/configure-aws-credentials@v4
36
+ with :
37
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
38
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
+ aws-region : sa-east-1
34
40
- name : Run Python Tests
35
41
env :
36
- CACHE_BUCKET_ID : ${{ secrets.CACHE_BUCKET_ID }}
37
- CACHE_BUCKET_KEY : ${{ secrets.CACHE_BUCKET_KEY }}
38
- CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
42
+ CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
39
43
run : python -m pytest -v
40
44
deploy :
41
45
needs : [build]
Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ jobs:
31
31
psql -h localhost -U postgres -d noharm -a -f database/noharm-newuser.sql -v ON_ERROR_STOP=1
32
32
psql -h localhost -U postgres -d noharm -a -f database/noharm-triggers.sql -v ON_ERROR_STOP=1
33
33
psql -h localhost -U postgres -d noharm -a -f database/noharm-insert.sql -v ON_ERROR_STOP=1
34
+ - name : Configure AWS Credentials
35
+ uses : aws-actions/configure-aws-credentials@v4
36
+ with :
37
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
38
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
+ aws-region : sa-east-1
34
40
- name : Run Python Tests
35
41
env :
36
- CACHE_BUCKET_ID : ${{ secrets.CACHE_BUCKET_ID }}
37
- CACHE_BUCKET_KEY : ${{ secrets.CACHE_BUCKET_KEY }}
38
- CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
42
+ CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
39
43
run : python -m pytest -v
40
44
deploy :
41
45
needs : [build]
Original file line number Diff line number Diff line change @@ -31,11 +31,15 @@ jobs:
31
31
psql -h localhost -U postgres -d noharm -a -f database/noharm-newuser.sql -v ON_ERROR_STOP=1
32
32
psql -h localhost -U postgres -d noharm -a -f database/noharm-triggers.sql -v ON_ERROR_STOP=1
33
33
psql -h localhost -U postgres -d noharm -a -f database/noharm-insert.sql -v ON_ERROR_STOP=1
34
+ - name : Configure AWS Credentials
35
+ uses : aws-actions/configure-aws-credentials@v4
36
+ with :
37
+ aws-access-key-id : ${{ secrets.AWS_ACCESS_KEY_ID }}
38
+ aws-secret-access-key : ${{ secrets.AWS_SECRET_ACCESS_KEY }}
39
+ aws-region : sa-east-1
34
40
- name : Run Python Tests
35
41
env :
36
- CACHE_BUCKET_ID : ${{ secrets.CACHE_BUCKET_ID }}
37
- CACHE_BUCKET_KEY : ${{ secrets.CACHE_BUCKET_KEY }}
38
- CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
42
+ CACHE_BUCKET_NAME : ${{ secrets.CACHE_BUCKET_NAME }}
39
43
run : python -m pytest -v
40
44
deploy :
41
45
needs : [build]
Original file line number Diff line number Diff line change 5
5
6
6
7
7
class Config :
8
- VERSION = "v4.13 -beta"
8
+ VERSION = "v4.14 -beta"
9
9
FRONTEND_VERSION = "4.0.10"
10
10
ENV = getenv ("ENV" ) or NoHarmENV .DEVELOPMENT .value
11
11
SECRET_KEY = getenv ("SECRET_KEY" ) or "secret_key"
Original file line number Diff line number Diff line change @@ -120,11 +120,7 @@ def get_factors(conversions):
120
120
121
121
122
122
def _get_client ():
123
- return boto3 .client (
124
- "s3" ,
125
- aws_access_key_id = Config .CACHE_BUCKET_ID ,
126
- aws_secret_access_key = Config .CACHE_BUCKET_KEY ,
127
- )
123
+ return boto3 .client ("s3" )
128
124
129
125
130
126
def _get_model (model_name ):
Original file line number Diff line number Diff line change 8
8
9
9
10
10
def _get_client ():
11
- return boto3 .client (
12
- "s3" ,
13
- aws_access_key_id = Config .CACHE_BUCKET_ID ,
14
- aws_secret_access_key = Config .CACHE_BUCKET_KEY ,
15
- )
11
+ return boto3 .client ("s3" )
16
12
17
13
18
14
def get_resource_name (report , schema , filename = "current" ):
You can’t perform that action at this time.
0 commit comments