Skip to content

Commit

Permalink
Fix coverage and tests workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
e-mit committed Jun 26, 2024
1 parent 4ed3364 commit 3a069f1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
- name: Run dynamoDB test container
run: |
export DB_TABLE_NAME=testTable
export TEST=true
export QUERY_LAMBDA_ARN=test
docker run --rm --name dynamodb_test_local -d -p 8000:8000 amazon/dynamodb-local
sleep 5
./create_test_db_table.sh
Expand All @@ -28,6 +26,8 @@ jobs:
export DB_TABLE_NAME=testTable
export TEST=true
export QUERY_LAMBDA_ARN=test
export API_STAGE_NAME=v1
source auth_dev.sh
target_coverage_pc=80
coverage_pc=$(python -m pytest --cov=. tests -p no:cacheprovider | awk '$1 == "TOTAL" {print $NF+0}')
echo Test coverage = $coverage_pc%
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ jobs:
- name: Run dynamoDB test container
run: |
export DB_TABLE_NAME=testTable
export TEST=true
export QUERY_LAMBDA_ARN=test
docker run --rm --name dynamodb_test_local -d -p 8000:8000 amazon/dynamodb-local
sleep 5
./create_test_db_table.sh
Expand All @@ -28,6 +26,8 @@ jobs:
export DB_TABLE_NAME=testTable
export TEST=true
export QUERY_LAMBDA_ARN=test
export API_STAGE_NAME=v1
source auth_dev.sh
python -m pytest tests -p no:cacheprovider
- name: Save result
if: always()
Expand Down

0 comments on commit 3a069f1

Please sign in to comment.