Skip to content

Commit d7e0fc6

Browse files
authored
fix: clean up tests (#46)
Signed-off-by: Richard Gebhardt <richard.gebhardt@oracle.com>
1 parent 5349854 commit d7e0fc6

File tree

4 files changed

+15
-7
lines changed

4 files changed

+15
-7
lines changed

.github/workflows/build.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Matrix Build
1+
name: Build and Test
22
on:
33
push:
44
branches:

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,14 @@ on:
77
branches:
88
- "main"
99
jobs:
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

Makefile

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -330,6 +330,12 @@ npx @modelcontextprotocol/inspector \
330330
Inspector will run your server on localhost (for instance: http://127.0.0.1:6274) which should automatically open the
331331
tool for debugging and development.
332332

333+
### Running tests
334+
335+
```bash
336+
make lint
337+
make test
338+
```
333339

334340
## Contributing
335341

0 commit comments

Comments
 (0)