mirror of
https://github.com/microsoft/autogen.git
synced 2026-04-20 03:02:16 -04:00
Add gen proto uncommitted changes check (#451)
* Add gen proto uncommitted changes check * Update checks.yml * Update agent_worker.proto * Update agent_worker.proto
This commit is contained in:
25
.github/workflows/checks.yml
vendored
25
.github/workflows/checks.yml
vendored
@@ -119,4 +119,27 @@ jobs:
|
||||
run: |
|
||||
source ${{ github.workspace }}/python/.venv/bin/activate
|
||||
poe --directory ${{ matrix.package }} pyright
|
||||
working-directory: ./python
|
||||
working-directory: ./python
|
||||
|
||||
check-proto-changes-python:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- run: curl -LsSf https://astral.sh/uv/install.sh | sh
|
||||
- uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
- run: uv sync
|
||||
working-directory: ./python
|
||||
- name: Run task
|
||||
run: |
|
||||
source ${{ github.workspace }}/python/.venv/bin/activate
|
||||
poe gen-proto
|
||||
working-directory: ./python
|
||||
- name: Evaluate if there are changes
|
||||
run: |
|
||||
if [[ `git status --porcelain` ]]; then
|
||||
echo "There are changes that need to be generated and commit for the proto files"
|
||||
exit 1
|
||||
fi
|
||||
shell: bash
|
||||
|
||||
Reference in New Issue
Block a user