Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ coverage:
ignore:
- dapr/proto # - Generated GRPC client
- tests # - tests
- .tox # - environment
- .venv # - environment
- ext/dapr-ext-fastapi/tests # - fastapi extention tests
46 changes: 26 additions & 20 deletions .github/workflows/build-push-to-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -15,19 +15,19 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +18 to +21
- name: Run Autoformatter
run: |
tox -e ruff
uv run ruff check --fix && uv run ruff format
statusResult=$(git status -u --porcelain)
if [ -z $statusResult ]
if [ -z "$statusResult" ]
then
exit 0
else
echo "Source files are not formatted correctly. Run 'tox -e ruff' to autoformat."
echo "Source files are not formatted correctly. Run 'uv run ruff check --fix && uv run ruff format'."
exit 1
fi

Expand All @@ -44,16 +44,22 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_ver }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +47 to +50
- name: Check Typing
run: |
tox -e type
run: uv run mypy
- name: Run unit-tests
run: |
tox -e py`echo "${{ matrix.python_ver }}" | sed 's/\.//g'`
uv run coverage run -m unittest discover -v ./tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-workflow/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-grpc/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-fastapi/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-langgraph/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-strands/tests
uv run coverage run -a -m unittest discover -v ./ext/flask_dapr/tests
uv run coverage xml
- name: Upload test coverage
uses: codecov/codecov-action@v5
publish:
Expand All @@ -71,52 +77,52 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine tox
pip install build twine
- name: Build and publish Dapr Python SDK
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-workflow
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-workflow
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish Dapr Flask Extension
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/flask_dapr
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-grpc
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-grpc
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-fastapi
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-fastapi
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-langgraph
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-langgraph
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-strands
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-strands
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
46 changes: 26 additions & 20 deletions .github/workflows/build-tag.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +24 to +27
- name: Run Autoformatter
run: |
tox -e ruff
uv run ruff check --fix && uv run ruff format
statusResult=$(git status -u --porcelain)
if [ -z $statusResult ]
if [ -z "$statusResult" ]
then
exit 0
else
echo "Source files are not formatted correctly. Run 'tox -e ruff' to autoformat."
echo "Source files are not formatted correctly. Run 'uv run ruff check --fix && uv run ruff format'."
exit 1
fi

Expand All @@ -50,16 +50,22 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_ver }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +53 to +56
- name: Check Typing
run: |
tox -e type
run: uv run mypy
- name: Run unit-tests
run: |
tox -e py`echo "${{ matrix.python_ver }}" | sed 's/\.//g'`
uv run coverage run -m unittest discover -v ./tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-workflow/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-grpc/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-fastapi/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-langgraph/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-strands/tests
uv run coverage run -a -m unittest discover -v ./ext/flask_dapr/tests
uv run coverage xml
- name: Upload test coverage
uses: codecov/codecov-action@v5
publish:
Expand All @@ -77,59 +83,59 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine tox
pip install build twine
- name: Build and publish Dapr Python SDK
if: startsWith(github.ref_name, 'v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-workflow
if: startsWith(github.ref_name, 'workflow-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-workflow
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish Dapr Flask Extension
if: startsWith(github.ref_name, 'flask-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/flask_dapr
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-grpc
if: startsWith(github.ref_name, 'grpc-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-grpc
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-fastapi
if: startsWith(github.ref_name, 'fastapi-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-fastapi
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-langgraph
if: startsWith(github.ref_name, 'langgraph-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-langgraph
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
- name: Build and publish dapr-ext-strands
if: startsWith(github.ref_name, 'strands-v')
env:
TWINE_PASSWORD: ${{ secrets.PYPI_UPLOAD_PASS }}
run: |
cd ext/dapr-ext-strands
python setup.py sdist bdist_wheel
python -m build
twine upload dist/*
30 changes: 18 additions & 12 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,19 +21,19 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: '3.10'
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +24 to +27
- name: Run Autoformatter
run: |
tox -e ruff
uv run ruff check --fix && uv run ruff format
statusResult=$(git status -u --porcelain)
if [ -z $statusResult ]
if [ -z "$statusResult" ]
then
exit 0
else
echo "Source files are not formatted correctly. Run 'tox -e ruff' to autoformat."
echo "Source files are not formatted correctly. Run 'uv run ruff check --fix && uv run ruff format'."
exit 1
fi

Expand All @@ -50,15 +50,21 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_ver }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel tox
run: uv sync --all-packages --group dev
Comment on lines +53 to +56
- name: Check Typing
run: |
tox -e type
run: uv run mypy
- name: Run unit-tests
run: |
tox -e py`echo "${{ matrix.python_ver }}" | sed 's/\.//g'`
uv run coverage run -m unittest discover -v ./tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-workflow/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-grpc/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-fastapi/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-langgraph/tests
uv run coverage run -a -m unittest discover -v ./ext/dapr-ext-strands/tests
uv run coverage run -a -m unittest discover -v ./ext/flask_dapr/tests
uv run coverage xml
- name: Upload test coverage
uses: codecov/codecov-action@v5
30 changes: 26 additions & 4 deletions .github/workflows/validate_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,10 @@ jobs:
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python_ver }}
- name: Install uv
uses: astral-sh/setup-uv@v5
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel twine tox
run: uv sync --all-packages --group examples
- name: Set up Dapr CLI
run: |
wget -q "https://github.com/dapr/cli/releases/download/v${{ env.DAPR_CLI_VER }}/dapr_${{ env.GOOS }}_${{ env.GOARCH }}.tar.gz" -O /tmp/dapr.tar.gz
Expand Down Expand Up @@ -155,4 +155,26 @@ jobs:
cd ..
- name: Check Examples
run: |
tox -e examples
cd examples
./validate.sh conversation
./validate.sh crypto
./validate.sh metadata
./validate.sh error_handling
./validate.sh pubsub-simple
./validate.sh pubsub-streaming
./validate.sh pubsub-streaming-async
./validate.sh state_store
./validate.sh state_store_query
./validate.sh secret_store
./validate.sh invoke-simple
./validate.sh invoke-custom-data
./validate.sh demo_actor
./validate.sh invoke-binding
./validate.sh grpc_proxying
./validate.sh w3c-tracing
./validate.sh distributed_lock
./validate.sh configuration
./validate.sh workflow
./validate.sh jobs
./validate.sh langgraph-checkpointer
./validate.sh ../
Loading
Loading