Skip to content

Commit

Permalink
Code coverage fix
Browse files Browse the repository at this point in the history
  • Loading branch information
judtinzhang committed Oct 14, 2023
1 parent 06051f6 commit 060ae20
Show file tree
Hide file tree
Showing 5 changed files with 77 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/cdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
"upgrade-cdk": "yarn upgrade cdkactions@latest cdkactions-cli@latest"
},
"dependencies": {
"@pennlabs/kraken": "^0.8.6",
"@pennlabs/kraken": "^0.8.12",
"cdkactions": "^0.2.3",
"constructs": "^3.2.109"
},
Expand Down
8 changes: 4 additions & 4 deletions .github/cdk/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
# yarn lockfile v1


"@pennlabs/kraken@^0.8.6":
version "0.8.6"
resolved "https://registry.yarnpkg.com/@pennlabs/kraken/-/kraken-0.8.6.tgz#79a9d10bed36b699c526556cd69b6d81341847d1"
integrity sha512-aBblQa/661DJ2GP3Dq1KEzCZ72ZV/Jw7z4HNZoWPxGWn+tSPwvaPkSNDpK7tT+nJmu427giGU8DLyciU79hKbA==
"@pennlabs/kraken@^0.8.12":
version "0.8.12"
resolved "https://registry.yarnpkg.com/@pennlabs/kraken/-/kraken-0.8.12.tgz#63aab218236f33af0ec0b90344926e7cbf167d60"
integrity sha512-+iYz/Xv674c0VujbYc65sFYU182Su3cmcByUndwKdnj75KDQVcHKOKrcfAcf5Z7eerGAYC7xfNftaZydjV0alw==
dependencies:
cdkactions "^0.2.3"
constructs "^3.2.80"
Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/cdkactions_build-and-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,18 @@ jobs:
- name: Test (run in parallel)
run: |-
cd backend
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=Platform.settings.ci --parallel
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=pennmobile.settings.ci --parallel
pipenv run coverage combine
pipenv run coverage xml
- name: Upload Code Coverage
run: |-
ROOT=$(pwd)
cd backend
pipenv run codecov --root $ROOT --flags backend
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
directory: ./backend/
fail_ci_if_error: true
files: coverage.xml
name: codecov-umbrella
verbose: true
container:
image: python:3.8-buster
env:
Expand Down
3 changes: 2 additions & 1 deletion backend/Pipfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ url = "https://pypi.org/simple"
verify_ssl = true

[dev-packages]
codecov = "*"
black = "==21.9b0"
unittest-xml-reporting = "*"
flake8 = "*"
Expand All @@ -15,6 +14,7 @@ django-debug-toolbar = "*"
django-extensions = "*"
flake8-absolute-import = "*"
tblib = "*"
coverage = "*"

[packages]
dj-database-url = "*"
Expand All @@ -39,6 +39,7 @@ requests = "*"
pillow = "*"
boto3 = "*"
django-storages = "*"
coverage = "*"

[requires]
python_version = "3"
61 changes: 60 additions & 1 deletion backend/Pipfile.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 060ae20

Please sign in to comment.