Skip to content

Commit 8f6650a

Browse files
committed
fix: OPENAI_API_KEY
1 parent 15b11f1 commit 8f6650a

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/test-coverage.yaml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ jobs:
2525

2626
- name: Run tests with coverage
2727
run: npm run test:coverage
28+
env:
29+
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
30+
# Repository Secrets: https://github.com/PaperDebugger/paperdebugger-mcp/settings/secrets/actions
2831

2932
- name: Upload coverage reports
3033
uses: actions/upload-artifact@v4
@@ -56,22 +59,22 @@ jobs:
5659
if (fs.existsSync('coverage/coverage-summary.json')) {
5760
const coverage = JSON.parse(fs.readFileSync('coverage/coverage-summary.json', 'utf8'));
5861
const total = coverage.total;
59-
62+
6063
const comment = `## 📊 Test Coverage Report
61-
62-
| Metric | Coverage |
64+
65+
| Metric | Coverage |
6366
|--------|----------|
6467
| Lines | ${total.lines.pct}% (${total.lines.covered}/${total.lines.total}) |
6568
| Functions | ${total.functions.pct}% (${total.functions.covered}/${total.functions.total}) |
6669
| Branches | ${total.branches.pct}% (${total.branches.covered}/${total.branches.total}) |
6770
| Statements | ${total.statements.pct}% (${total.statements.covered}/${total.statements.total}) |
68-
71+
6972
🔗 [View detailed report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
70-
73+
7174
github.rest.issues.createComment({
7275
issue_number: context.issue.number,
7376
owner: context.repo.owner,
7477
repo: context.repo.repo,
7578
body: comment
7679
});
77-
}
80+
}

0 commit comments

Comments
 (0)