Skip to content

Commit 38ba308

Browse files
committed
Install uv before running tests
1 parent 1a5fe1d commit 38ba308

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.projenrc.ts

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { awscdk } from 'projen';
1+
import { JsonPatch, awscdk } from 'projen';
22
import { JobPermission } from 'projen/lib/github/workflows-model';
33
const project = new awscdk.AwsCdkConstructLibrary({
44
author: 'Eoin Shanaghy',
@@ -29,6 +29,7 @@ const project = new awscdk.AwsCdkConstructLibrary({
2929
},
3030
eslint: false,
3131
});
32+
3233
const biomeWorkflow = project.github?.addWorkflow('biome');
3334
biomeWorkflow?.on({
3435
pullRequest: {
@@ -62,5 +63,15 @@ biomeWorkflow?.addJobs({
6263
},
6364
});
6465

66+
const buildWorkflow = project.tryFindObjectFile('.github/workflows/build.yml');
67+
if (buildWorkflow) {
68+
buildWorkflow.patch(
69+
JsonPatch.add('/jobs/build/steps/0', {
70+
name: 'Install uv',
71+
run: 'pip install uv',
72+
}),
73+
);
74+
}
75+
6576
project.files;
6677
project.synth();

0 commit comments

Comments
 (0)