Skip to content

Commit

Permalink
Add proto generation to build command (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
jyecusch authored Apr 6, 2023
2 parents fb4c80a + 9709e8d commit bbfb08d
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ on:
pull_request:

jobs:
build:
test:
runs-on: ubuntu-latest
strategy:
matrix:
Expand Down
3 changes: 3 additions & 0 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,9 @@ grpc-client: install download
@echo Generating Proto Sources
@echo $(OUTPUT)
@mkdir -p $(OUTPUT)
# protoc doesn't create the __init__.py for the nitric module, so we need to create it.
@mkdir -p $(OUTPUT)/nitric/
@touch $(OUTPUT)/nitric/__init.py__
@python3 -m grpc_tools.protoc -I $(CONTRACTS) --python_betterproto_out=$(OUTPUT) ./contracts/proto/*/*/*.proto


Expand Down
Empty file added nitric/proto/nitric/__init.py__
Empty file.

0 comments on commit bbfb08d

Please sign in to comment.