File tree 1 file changed +13
-32
lines changed 1 file changed +13
-32
lines changed Original file line number Diff line number Diff line change 4
4
workflow_call :
5
5
6
6
jobs :
7
- format :
8
- runs-on : ubuntu-latest
9
- steps :
10
- - uses : actions/checkout@v4
11
-
12
- - name : Install uv
13
- uses : astral-sh/setup-uv@v3
14
- with :
15
- enable-cache : true
16
-
17
- - name : Install the project
18
- run : uv sync --frozen --all-extras --dev --python 3.13
19
-
20
- - name : Run ruff format check
21
- run : uv run --no-sync ruff check .
22
-
23
- typecheck :
24
- runs-on : ubuntu-latest
25
- steps :
26
- - uses : actions/checkout@v4
27
-
28
- - name : Install uv
29
- uses : astral-sh/setup-uv@v3
30
- with :
31
- enable-cache : true
32
-
33
- - name : Install the project
34
- run : uv sync --frozen --all-extras --dev --python 3.13
35
-
36
- - name : Run pyright
37
- run : uv run --no-sync pyright
38
-
39
7
test :
40
8
runs-on : ubuntu-latest
41
9
strategy :
45
13
steps :
46
14
- uses : actions/checkout@v4
47
15
16
+ - name : Clear UV Cache (if exists)
17
+ run : uv cache clear || true
18
+
48
19
- name : Install uv
49
20
uses : astral-sh/setup-uv@v3
50
21
with :
@@ -62,10 +33,20 @@ jobs:
62
33
run : |
63
34
uv run --no-sync python -m pip install python-jose types-python-jose
64
35
36
+ - name : Install local mcp package
37
+ run : |
38
+ uv run --no-sync pip install -e ./src
39
+
65
40
- name : Verify installation
66
41
run : uv run --no-sync python -m pip list
67
42
43
+ - name : Set Python Path for MCP
44
+ run : echo "PYTHONPATH=$PYTHONPATH:$(pwd)/src" >> $GITHUB_ENV
45
+
68
46
- name : Run pytest
47
+ env :
48
+ PYTHONPATH : ${{ env.PYTHONPATH }}
69
49
run : uv run --no-sync pytest
70
50
71
51
52
+
You can’t perform that action at this time.
0 commit comments