Skip to content

Commit 891032a

Browse files
committed
fix: enable tests
Signed-off-by: Richard Gebhardt <[email protected]>
1 parent bdcf6a2 commit 891032a

File tree

2 files changed

+17
-12
lines changed

2 files changed

+17
-12
lines changed
Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Lint
1+
name: Test
22
on:
33
push:
44
branches:
@@ -7,18 +7,21 @@ on:
77
branches:
88
- "main"
99
jobs:
10-
build:
10+
test:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v4
14-
- name: Set up Python ${{ matrix.python-version }}
15-
uses: actions/setup-python@v3
13+
- name: Checkout code
14+
uses: actions/checkout@v4
15+
16+
- name: Set up Python
17+
uses: actions/setup-python@v5
1618
with:
17-
python-version: ${{ matrix.python-version }}
19+
python-version: "3.13"
1820
- name: Install dependencies
1921
run: |
2022
python -m pip install --upgrade pip
2123
python -m pip install -r requirements-dev.txt
22-
- name: Test with tox
23-
run: |
24-
tox run -e lint
24+
- name: Lint
25+
run: make lint
26+
- name: Run tests
27+
run: make test

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

0 commit comments

Comments
 (0)