Skip to content

Commit

Permalink
Update codecov for DjangoCheckJob (#172)
Browse files Browse the repository at this point in the history
* Update codecov

* Update snapshots

* Version bumps
  • Loading branch information
judtinzhang authored Oct 3, 2023
1 parent f66f263 commit 056907a
Show file tree
Hide file tree
Showing 9 changed files with 123 additions and 51 deletions.
2 changes: 1 addition & 1 deletion cdk/kraken/.projenrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ const project = new TypeScriptProject({
...common.options,
});

project.addFields({['version']: '0.8.10'});
project.addFields({['version']: '0.8.11'});
project.prettier?.ignoreFile?.addPatterns('src/imports');
project.testTask.steps.forEach(step => {
if (step.exec) {
Expand Down
4 changes: 4 additions & 0 deletions cdk/kraken/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## X.Y.Z (UNRELEASED)

## 0.8.11 (2023-10-02)

- Update DjangoCheckJob to account for codecov deprecation

## 0.8.10 (2022-11-05)

- Docker image: support build args
Expand Down
2 changes: 1 addition & 1 deletion cdk/kraken/package.json

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

14 changes: 10 additions & 4 deletions cdk/kraken/src/django.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,19 @@ export class DjangoCheckJob extends CheckoutJob {
name: "Test (run in parallel)",
run: dedent`cd ${fullConfig.path}
pipenv run coverage run --concurrency=multiprocessing manage.py test --settings=${fullConfig.projectName}.settings.ci --parallel
pipenv run coverage combine`,
pipenv run coverage combine
pipenv run coverage xml`,
});
steps.push({
name: "Upload Code Coverage",
run: dedent`ROOT=$(pwd)
cd ${fullConfig.path}
pipenv run codecov --root $ROOT --flags backend`,
uses: "codecov/codecov-action@v3",
with: {
directory: "./backend/",
fail_ci_if_error: true,
files: "coverage.xml",
name: "codecov-umbrella",
verbose: true,
}
});

// Create Job
Expand Down
28 changes: 20 additions & 8 deletions cdk/kraken/test/__snapshots__/custom.test.ts.snap

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

28 changes: 20 additions & 8 deletions cdk/kraken/test/__snapshots__/django-project.test.ts.snap

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

70 changes: 50 additions & 20 deletions cdk/kraken/test/__snapshots__/django.test.ts.snap

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

24 changes: 16 additions & 8 deletions cdk/kraken/test/__snapshots__/labs-application.test.ts.snap

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

2 changes: 1 addition & 1 deletion cdk/kraken/version.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
"version": "0.8.10"
"version": "0.8.11"
}

0 comments on commit 056907a

Please sign in to comment.