Skip to content

Commit 40174fc

Browse files
committed
Update test generation workflow dependencies and comments
Replaces custom py-shiny setup and Makefile commands with pip install for test dependencies. Refactors comment formatting in evaluation results for improved readability and consistency.
1 parent 8f9a6a0 commit 40174fc

File tree

1 file changed

+10
-15
lines changed

1 file changed

+10
-15
lines changed

.github/workflows/validate-test-generation-prompts.yaml

Lines changed: 10 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,10 @@ jobs:
2525
with:
2626
python-version: '3.12'
2727

28-
- name: Setup py-shiny
29-
id: install
30-
uses: ./.github/py-shiny/setup
31-
3228
- name: Install dependencies
3329
run: |
3430
python -m pip install --upgrade pip
35-
make install-deps
36-
make install
31+
pip install -e ".[test]"
3732
3833
- name: Install Playwright browsers
3934
run: |
@@ -120,14 +115,14 @@ jobs:
120115
try {
121116
const results = JSON.parse(fs.readFileSync('results/summary.json', 'utf8'));
122117
123-
const comment = `## Inspect AI Evaluation Results
118+
const comment = \`## Inspect AI Evaluation Results
124119
125-
- **Tests Passed**: ${results.passed}/${results.total}
126-
- **Quality Gate**: ${results.quality_gate_passed ? '✅ PASSED' : '❌ FAILED'}
120+
- **Tests Passed**: \${results.passed}/\${results.total}
121+
- **Quality Gate**: \${results.quality_gate_passed ? '✅ PASSED' : '❌ FAILED'}
127122
128123
### Details
129-
${results.details}
130-
`;
124+
\${results.details}
125+
\`;
131126
132127
github.rest.issues.createComment({
133128
issue_number: context.issue.number,
@@ -137,11 +132,11 @@ jobs:
137132
});
138133
} catch (error) {
139134
console.error('Error reading summary file:', error);
140-
const comment = `## Inspect AI Evaluation Results
141-
135+
const comment = \`## Inspect AI Evaluation Results
136+
142137
❌ **Error**: Could not read evaluation results summary file.
143-
144-
Please check the workflow logs for details.`;
138+
139+
Please check the workflow logs for details.\`;
145140
146141
github.rest.issues.createComment({
147142
issue_number: context.issue.number,

0 commit comments

Comments
 (0)