Skip to content

Commit a413d8d

Browse files
committed
chore: remove test-coverage
1 parent 32e66a2 commit a413d8d

File tree

1 file changed

+67
-67
lines changed

1 file changed

+67
-67
lines changed
Lines changed: 67 additions & 67 deletions
Original file line numberDiff line numberDiff line change
@@ -1,81 +1,81 @@
1-
name: Test Coverage
1+
# name: Test Coverage
22

3-
on:
4-
push:
5-
branches: [ main, develop ]
6-
pull_request:
7-
branches: [ main, develop ]
3+
# on:
4+
# push:
5+
# branches: [ main, develop ]
6+
# pull_request:
7+
# branches: [ main, develop ]
88

9-
jobs:
10-
test-coverage:
11-
runs-on: ubuntu-latest
9+
# jobs:
10+
# test-coverage:
11+
# runs-on: ubuntu-latest
1212

13-
steps:
14-
- name: Checkout code
15-
uses: actions/checkout@v4
13+
# steps:
14+
# - name: Checkout code
15+
# uses: actions/checkout@v4
1616

17-
- name: Setup Node.js
18-
uses: actions/setup-node@v4
19-
with:
20-
node-version: '20.x'
21-
cache: 'npm'
17+
# - name: Setup Node.js
18+
# uses: actions/setup-node@v4
19+
# with:
20+
# node-version: '20.x'
21+
# cache: 'npm'
2222

23-
- name: Install dependencies
24-
run: npm ci
23+
# - name: Install dependencies
24+
# run: npm ci
2525

26-
- name: Run tests with coverage
27-
run: npm run test:coverage
28-
env:
29-
OPENAI_API_KEY: ${{ secrets.MCP_AUTO_TEST_KEY }}
26+
# - name: Run tests with coverage
27+
# run: npm run test:coverage
28+
# env:
29+
# OPENAI_API_KEY: ${{ secrets.MCP_AUTO_TEST_KEY }}
3030

31-
# Repository Secrets: https://github.com/PaperDebugger/paperdebugger-mcp/settings/secrets/actions
31+
# # Repository Secrets: https://github.com/PaperDebugger/paperdebugger-mcp/settings/secrets/actions
3232

33-
- name: Upload coverage reports
34-
uses: actions/upload-artifact@v4
35-
with:
36-
name: coverage-report
37-
path: coverage/
38-
retention-days: 30
33+
# - name: Upload coverage reports
34+
# uses: actions/upload-artifact@v4
35+
# with:
36+
# name: coverage-report
37+
# path: coverage/
38+
# retention-days: 30
3939

40-
- name: Coverage Report Summary
41-
if: always()
42-
run: |
43-
echo "## 📊 Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
44-
echo "" >> $GITHUB_STEP_SUMMARY
45-
if [ -f coverage/coverage-summary.json ]; then
46-
echo "### Overall Coverage:" >> $GITHUB_STEP_SUMMARY
47-
echo "\`\`\`json" >> $GITHUB_STEP_SUMMARY
48-
cat coverage/coverage-summary.json | jq '.' >> $GITHUB_STEP_SUMMARY
49-
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
50-
fi
51-
echo "" >> $GITHUB_STEP_SUMMARY
52-
echo "📁 [Download detailed coverage report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
40+
# - name: Coverage Report Summary
41+
# if: always()
42+
# run: |
43+
# echo "## 📊 Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
44+
# echo "" >> $GITHUB_STEP_SUMMARY
45+
# if [ -f coverage/coverage-summary.json ]; then
46+
# echo "### Overall Coverage:" >> $GITHUB_STEP_SUMMARY
47+
# echo "\`\`\`json" >> $GITHUB_STEP_SUMMARY
48+
# cat coverage/coverage-summary.json | jq '.' >> $GITHUB_STEP_SUMMARY
49+
# echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
50+
# fi
51+
# echo "" >> $GITHUB_STEP_SUMMARY
52+
# echo "📁 [Download detailed coverage report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})" >> $GITHUB_STEP_SUMMARY
5353

54-
- name: Comment PR with coverage
55-
if: github.event_name == 'pull_request'
56-
uses: actions/github-script@v7
57-
with:
58-
script: |
59-
const fs = require('fs');
60-
if (fs.existsSync('coverage/coverage-summary.json')) {
61-
const coverage = JSON.parse(fs.readFileSync('coverage/coverage-summary.json', 'utf8'));
62-
const total = coverage.total;
54+
# - name: Comment PR with coverage
55+
# if: github.event_name == 'pull_request'
56+
# uses: actions/github-script@v7
57+
# with:
58+
# script: |
59+
# const fs = require('fs');
60+
# if (fs.existsSync('coverage/coverage-summary.json')) {
61+
# const coverage = JSON.parse(fs.readFileSync('coverage/coverage-summary.json', 'utf8'));
62+
# const total = coverage.total;
6363

64-
const comment = `## 📊 Test Coverage Report
64+
# const comment = `## 📊 Test Coverage Report
6565

66-
| Metric | Coverage |
67-
|--------|----------|
68-
| Lines | ${total.lines.pct}% (${total.lines.covered}/${total.lines.total}) |
69-
| Functions | ${total.functions.pct}% (${total.functions.covered}/${total.functions.total}) |
70-
| Branches | ${total.branches.pct}% (${total.branches.covered}/${total.branches.total}) |
71-
| Statements | ${total.statements.pct}% (${total.statements.covered}/${total.statements.total}) |
66+
# | Metric | Coverage |
67+
# |--------|----------|
68+
# | Lines | ${total.lines.pct}% (${total.lines.covered}/${total.lines.total}) |
69+
# | Functions | ${total.functions.pct}% (${total.functions.covered}/${total.functions.total}) |
70+
# | Branches | ${total.branches.pct}% (${total.branches.covered}/${total.branches.total}) |
71+
# | Statements | ${total.statements.pct}% (${total.statements.covered}/${total.statements.total}) |
7272

73-
🔗 [View detailed report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
73+
# 🔗 [View detailed report](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})`;
7474

75-
github.rest.issues.createComment({
76-
issue_number: context.issue.number,
77-
owner: context.repo.owner,
78-
repo: context.repo.repo,
79-
body: comment
80-
});
81-
}
75+
# github.rest.issues.createComment({
76+
# issue_number: context.issue.number,
77+
# owner: context.repo.owner,
78+
# repo: context.repo.repo,
79+
# body: comment
80+
# });
81+
# }

0 commit comments

Comments
 (0)