Skip to content

Commit f0a8a45

Browse files
chore: add protos check action (#267)
**Description** Adding a generated-protos check action on any branch push to check protos as minor bumps from deps updates can introduce formatting changes if local tools are slightly out of sync. This is useful to run prior to release actions.
1 parent 64fdc8a commit f0a8a45

File tree

3 files changed

+209
-223
lines changed

3 files changed

+209
-223
lines changed

.github/workflows/ci-pydgraph-tests.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@ name: ci-pydgraph-tests
33
on:
44
push:
55
branches:
6-
- master
6+
- main
77
pull_request:
88
types:
99
- opened
1010
- reopened
1111
- synchronize
1212
- ready_for_review
1313
branches:
14-
- master
14+
- main
1515
schedule:
1616
- cron: 1 0 * * * # run workflow daily
1717

@@ -54,5 +54,10 @@ jobs:
5454
cd pydgraph
5555
python -m pip install --upgrade pip
5656
python -m pip install .[dev]
57+
- name: Verify that updated protobufs are checked in
58+
run: |
59+
cd pydgraph
60+
python scripts/protogen.py
61+
git diff --exit-code -- .
5762
- name: Run tests
5863
run: cd pydgraph && DGRAPH_IMAGE_TAG=local bash scripts/local-test.sh

pydgraph/proto/api_pb2.py

Lines changed: 70 additions & 68 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)