Skip to content

Commit 936d9dd

Browse files
author
root
committed
Fix: Separate uses and steps for reusable workflow
1 parent f7335b2 commit 936d9dd

File tree

3 files changed

+8
-12
lines changed

3 files changed

+8
-12
lines changed

.github/workflows/main-checks.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,7 @@ jobs:
1212
checks:
1313
uses: ./.github/workflows/shared.yml
1414

15+
16+
17+
18+

.github/workflows/shared.yml

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,6 @@ jobs:
1717
- name: Install the project
1818
run: uv sync --frozen --all-extras --dev --python 3.12
1919

20-
- name: Install required packages
21-
run: pip install python-jose types-python-jose
22-
2320
- name: Run ruff format check
2421
run: uv run --no-sync ruff check .
2522

@@ -36,9 +33,6 @@ jobs:
3633
- name: Install the project
3734
run: uv sync --frozen --all-extras --dev --python 3.12
3835

39-
- name: Install required packages
40-
run: pip install python-jose types-python-jose
41-
4236
- name: Run pyright
4337
run: uv run --no-sync pyright
4438

@@ -59,11 +53,9 @@ jobs:
5953
- name: Install the project
6054
run: uv sync --frozen --all-extras --dev --python ${{ matrix.python-version }}
6155

62-
- name: Clean existing mcp directory
63-
run: rm -rf /home/runner/work/python-sdk/python-sdk/src/mcp
64-
65-
- name: Install dependencies
66-
run: pip install -r requirements.txt
56+
- name: Install jose dependencies
57+
run: uv run --no-sync pip install python-jose types-python-jose
6758

6859
- name: Run pytest
6960
run: uv run --no-sync pytest
61+

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ pydantic_core==2.33.2
2525
pytest==8.3.5
2626
python-dotenv==1.1.0
2727
python-jose==3.4.0
28+
types-python-jose==3.4.0.20250516
2829
python-multipart==0.0.20
2930
rsa==4.9.1
3031
ruff==0.11.10
@@ -33,7 +34,6 @@ sniffio==1.3.1
3334
sse-starlette==2.3.5
3435
starlette==0.46.2
3536
types-pyasn1==0.6.0.20250516
36-
types-python-jose==3.4.0.20250516
3737
typing-inspection==0.4.0
3838
typing_extensions==4.13.2
3939
uvicorn==0.34.2

0 commit comments

Comments
 (0)