Skip to content

Commit

Permalink
Add gen proto uncommitted changes check (#451)
Browse files Browse the repository at this point in the history
* Add gen proto uncommitted changes check

* Update checks.yml

* Update agent_worker.proto

* Update agent_worker.proto
  • Loading branch information
jackgerrits authored Sep 5, 2024
1 parent df44d26 commit f941fe1
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f941fe1

Please sign in to comment.