@@ -15,19 +15,19 @@ jobs:
1515 uses : actions/setup-python@v6
1616 with :
1717 python-version : ' 3.10'
18+ - name : Install uv
19+ uses : astral-sh/setup-uv@v5
1820 - name : Install dependencies
19- run : |
20- python -m pip install --upgrade pip
21- pip install setuptools wheel tox
21+ run : uv sync --frozen --all-packages --group dev
2222 - name : Run Autoformatter
2323 run : |
24- tox -e ruff
24+ uv run ruff check --fix && uv run ruff format
2525 statusResult=$(git status -u --porcelain)
26- if [ -z $statusResult ]
26+ if [ -z " $statusResult" ]
2727 then
2828 exit 0
2929 else
30- echo "Source files are not formatted correctly. Run 'tox -e ruff' to autoformat ."
30+ echo "Source files are not formatted correctly. Run 'uv run ruff check --fix && uv run ruff format' ."
3131 exit 1
3232 fi
3333
@@ -44,16 +44,20 @@ jobs:
4444 uses : actions/setup-python@v6
4545 with :
4646 python-version : ${{ matrix.python_ver }}
47+ - name : Install uv
48+ uses : astral-sh/setup-uv@v5
4749 - name : Install dependencies
48- run : |
49- python -m pip install --upgrade pip
50- pip install setuptools wheel tox
50+ run : uv sync --frozen --all-packages --group dev
5151 - name : Check Typing
52- run : |
53- tox -e type
52+ run : uv run mypy
5453 - name : Run unit-tests
5554 run : |
56- tox -e py`echo "${{ matrix.python_ver }}" | sed 's/\.//g'`
55+ uv run coverage run -m unittest discover -v ./tests
56+ for dir in ext/*/tests; do
57+ uv run coverage run -a -m unittest discover -v "./$dir"
58+ done
59+ uv run coverage run -a -m pytest -m "not e2e" ./ext/dapr-ext-workflow/tests/durabletask/
60+ uv run coverage xml
5761 - name : Upload test coverage
5862 uses : codecov/codecov-action@v6
5963 publish :
@@ -71,52 +75,52 @@ jobs:
7175 - name : Install dependencies
7276 run : |
7377 python -m pip install --upgrade pip
74- pip install setuptools wheel twine tox
78+ pip install build twine
7579 - name : Build and publish Dapr Python SDK
7680 env :
7781 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
7882 run : |
79- python setup.py sdist bdist_wheel
83+ python -m build
8084 twine upload dist/*
8185 - name : Build and publish dapr-ext-workflow
8286 env :
8387 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
8488 run : |
8589 cd ext/dapr-ext-workflow
86- python setup.py sdist bdist_wheel
90+ python -m build
8791 twine upload dist/*
8892 - name : Build and publish Dapr Flask Extension
8993 env :
9094 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
9195 run : |
9296 cd ext/flask_dapr
93- python setup.py sdist bdist_wheel
97+ python -m build
9498 twine upload dist/*
9599 - name : Build and publish dapr-ext-grpc
96100 env :
97101 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
98102 run : |
99103 cd ext/dapr-ext-grpc
100- python setup.py sdist bdist_wheel
104+ python -m build
101105 twine upload dist/*
102106 - name : Build and publish dapr-ext-fastapi
103107 env :
104108 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
105109 run : |
106110 cd ext/dapr-ext-fastapi
107- python setup.py sdist bdist_wheel
111+ python -m build
108112 twine upload dist/*
109113 - name : Build and publish dapr-ext-langgraph
110114 env :
111115 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
112116 run : |
113117 cd ext/dapr-ext-langgraph
114- python setup.py sdist bdist_wheel
118+ python -m build
115119 twine upload dist/*
116120 - name : Build and publish dapr-ext-strands
117121 env :
118122 TWINE_PASSWORD : ${{ secrets.PYPI_UPLOAD_PASS }}
119123 run : |
120124 cd ext/dapr-ext-strands
121- python setup.py sdist bdist_wheel
125+ python -m build
122126 twine upload dist/*
0 commit comments