File tree Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Expand file tree Collapse file tree 2 files changed +19
-1
lines changed Original file line number Diff line number Diff line change 5
5
branches : [ main, release ]
6
6
tags :
7
7
- ' release-*'
8
+ paths-ignore :
9
+ - " **/coverage.svg"
8
10
pull_request :
9
11
branches : [ main, release ]
12
+ paths-ignore :
13
+ - " **/coverage.svg"
10
14
11
15
env :
12
16
CARGO_TERM_COLOR : always
@@ -101,6 +105,8 @@ jobs:
101
105
coverage :
102
106
name : Code Coverage
103
107
runs-on : ubuntu-latest
108
+ permissions :
109
+ contents : write
104
110
steps :
105
111
- uses : actions/checkout@v3
106
112
@@ -130,8 +136,19 @@ jobs:
130
136
- name : Install llvm-tools-preview
131
137
run : rustup component add llvm-tools-preview
132
138
139
+ - name : Install lcov
140
+ run : sudo apt-get update && sudo apt-get install -y lcov bc
141
+
133
142
- name : Run tests with coverage
134
- run : cargo llvm-cov --all-features
143
+ run : cargo llvm-cov --all-features --lcov --output-path lcov.info
144
+
145
+ - name : Generate coverage badge
146
+ if : github.ref == 'refs/heads/main'
147
+ uses : GoogleCloudPlatform/lcov-coverage-badge@5857899449990297b622767f36e4fa8d1218acdb
148
+ with :
149
+ file : ./lcov.info
150
+ icon_name : github
151
+ access_token : ${{ secrets.GITHUB_TOKEN }}
135
152
136
153
security_audit :
137
154
name : Security Audit
Original file line number Diff line number Diff line change 7
7
[ ![ Crates.io Version] ( https://img.shields.io/crates/v/rmcp )] ( https://crates.io/crates/rmcp )
8
8
![ Release status] ( https://github.com/modelcontextprotocol/rust-sdk/actions/workflows/release.yml/badge.svg )
9
9
[ ![ docs.rs] ( https://img.shields.io/docsrs/rmcp )] ( https://docs.rs/rmcp/latest/rmcp )
10
+ ![ Coverage] ( coverage.svg )
10
11
11
12
An official rust Model Context Protocol SDK implementation with tokio async runtime.
12
13
You can’t perform that action at this time.
0 commit comments