Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 35 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,42 @@

- name: Run tests
run: cargo test --all-features


test-no-local:
name: Run Tests (no local feature)
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6

# install nodejs
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '20'

- name: Install uv
uses: astral-sh/setup-uv@v7

- name: Install Rust
uses: dtolnay/rust-toolchain@stable

- name: Set up Python
run: uv python install

- name: Create venv for python
run: uv venv

- uses: Swatinem/rust-cache@v2

- name: Run tests without local feature
run: |
FEATURES=$(cargo metadata --no-deps --format-version 1 \
| jq -r '[.packages[] | select(.name == "rmcp") | .features | keys[]
| select(startswith("__") | not)
| select(. != "local")] | join(",")')
cargo test -p rmcp --features "$FEATURES"

coverage:

Check warning

Code scanning / CodeQL

Workflow does not contain permissions Medium

Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
name: Code Coverage
runs-on: ubuntu-latest
permissions:
Expand Down
Loading