Skip to content
Merged
Show file tree
Hide file tree
Changes from 16 commits
Commits
Show all changes
24 commits
Select commit Hold shift + click to select a range
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
10 changes: 2 additions & 8 deletions .devcontainer/postCreateCommand.sh
Original file line number Diff line number Diff line change
@@ -1,8 +1,2 @@
# Install a project in a editable mode
pip3 install -e .
pip3 install -e ./ext/dapr-ext-grpc/
pip3 install -e ./ext/dapr-ext-fastapi/
pip3 install -e ./ext/dapr-ext-workflow/

# Install required packages
pip3 install -r ./dev-requirements.txt
# Install all packages and dev dependencies
uv sync --all-packages --group dev
44 changes: 24 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 --frozen --all-packages --group dev
- 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,20 @@ 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 --frozen --all-packages --group dev
- 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
for dir in ext/*/tests; do
uv run coverage run -a -m unittest discover -v "./$dir"
done
uv run coverage run -a -m pytest -m "not e2e" ./ext/dapr-ext-workflow/tests/durabletask/
uv run coverage xml
- name: Upload test coverage
uses: codecov/codecov-action@v6
publish:
Expand All @@ -71,52 +75,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
Comment thread
acroca marked this conversation as resolved.
Comment thread
acroca marked this conversation as resolved.
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/*
44 changes: 24 additions & 20 deletions .github/workflows/build-tag.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 --frozen --all-packages --group dev
- 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,20 @@ 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 --frozen --all-packages --group dev
- 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
for dir in ext/*/tests; do
uv run coverage run -a -m unittest discover -v "./$dir"
done
uv run coverage run -a -m pytest -m "not e2e" ./ext/dapr-ext-workflow/tests/durabletask/
uv run coverage xml
Comment thread
acroca marked this conversation as resolved.
- name: Upload test coverage
uses: codecov/codecov-action@v6
publish:
Expand All @@ -71,52 +75,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
Comment thread
acroca marked this conversation as resolved.
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/*
26 changes: 15 additions & 11 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 --frozen --all-packages --group dev
- name: Run Autoformatter
run: |
tox -e ruff
uv run ruff check --fix && uv run ruff format
statusResult=$(git status -u --porcelain)
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,19 @@ 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 --frozen --all-packages --group dev
- 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
for dir in ext/*/tests; do
uv run coverage run -a -m unittest discover -v "./$dir"
done
uv run coverage run -a -m pytest -m "not e2e" ./ext/dapr-ext-workflow/tests/durabletask/
uv run coverage xml
- name: Upload test coverage
uses: codecov/codecov-action@v6
15 changes: 11 additions & 4 deletions .github/workflows/validate_examples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,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 --frozen --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 @@ -153,4 +153,11 @@ jobs:
cd ..
- name: Check Examples
run: |
tox -e examples
cd examples
for dir in */; do
dir="${dir%/}"
if [ -f "$dir/README.md" ]; then
./validate.sh "$dir"
fi
done
./validate.sh ../
Loading
Loading