File tree Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Expand file tree Collapse file tree 4 files changed +15
-7
lines changed Original file line number Diff line number Diff line change 1- name : Matrix Build
1+ name : Build and Test
22on :
33 push :
44 branches :
Original file line number Diff line number Diff line change 77 branches :
88 - " main"
99jobs :
10- build :
10+ lint :
1111 runs-on : ubuntu-latest
1212 steps :
1313 - uses : actions/checkout@v4
14- - name : Set up Python ${{ matrix.python-version }}
14+ - name : Set up Python 3.13
1515 uses : actions/setup-python@v3
1616 with :
17- python-version : ${{ matrix.python-version }}
17+ python-version : 3.13
1818 - name : Install dependencies
1919 run : |
2020 python -m pip install --upgrade pip
Original file line number Diff line number Diff line change 1- SUBDIRS := $(filter-out src/dbtools-mcp-server src/mysql-mcp-server src/oci-pricing-mcp-server,$(wildcard src/* ) )
1+ SUBDIRS := $(filter-out src/dbtools-mcp-server src/mysql-mcp-server src/oci-pricing-mcp-server src/oracle-db-doc-mcp-server ,$(wildcard src/* ) )
22
33.PHONY : test format
44
@@ -42,12 +42,14 @@ lock:
4242 fi \
4343 done
4444
45- test :
45+ lint :
4646 uv tool run --from ' tox==4.30.2' tox -e lint
47+
48+ test :
4749 @for dir in $(SUBDIRS ) ; do \
4850 if [ -f $$ dir/pyproject.toml ]; then \
4951 echo " Testing $$ dir" ; \
50- cd $$ dir && uv run pytest && cd ../..; \
52+ cd $$ dir && uv sync && uv run pytest && cd ../..; \
5153 fi \
5254 done
5355
Original file line number Diff line number Diff line change @@ -330,6 +330,12 @@ npx @modelcontextprotocol/inspector \
330330Inspector will run your server on localhost (for instance: http://127.0.0.1:6274 ) which should automatically open the
331331tool for debugging and development.
332332
333+ ### Running tests
334+
335+ ``` bash
336+ make lint
337+ make test
338+ ```
333339
334340## Contributing
335341
You can’t perform that action at this time.
0 commit comments