Skip to content

Commit 4afba7c

Browse files
Merge pull request #1 from sharoonthomas/main
Add github action to test
2 parents c4c9c71 + 4d681e2 commit 4afba7c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Test and Lint
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python-version: ["3.10", "3.11", "3.12"]
15+
16+
steps:
17+
- uses: actions/checkout@v4
18+
- name: Set up Python ${{ matrix.python-version }}
19+
uses: actions/setup-python@v5
20+
with:
21+
python-version: ${{ matrix.python-version }}
22+
- name: Install dependencies
23+
run: |
24+
python -m pip install --upgrade pip
25+
pip install .[dev]
26+
- name: Lint with ruff
27+
run: |
28+
ruff check .
29+
ruff format --check .
30+
- name: Test with pytest
31+
run: |
32+
pytest tests/ -v --cov=mcp_utils --cov-report=term-missing

0 commit comments

Comments
 (0)