File tree Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Expand file tree Collapse file tree 1 file changed +10
-4
lines changed Original file line number Diff line number Diff line change 1616 - name : Get Python Version
1717 run : |
1818 #!/bin/bash
19- cd pydgraph
2019 PYTHON_VERSION=$({ [ -f .python-version ] && cat .python-version; })
2120 echo "PYTHON_VERSION=$PYTHON_VERSION" >> $GITHUB_ENV
2221 - name : Set up Python
@@ -31,13 +30,20 @@ jobs:
3130 python -m pip install twine
3231 - name : Verify that protobufs are checked in
3332 run : |
34- # should be a no-op
33+ # we modify one line in proto/api_pb2_grpc.py as described in readme
3534 python scripts/protogen.py
36- git diff --exit-code -- .
35+ ACTUAL_DIFF=$(git diff --shortstat)
36+ EXPECTED_DIFF=" 1 file changed, 1 insertion(+), 1 deletion(-)"
37+ if [[ "$ACTUAL_DIFF" == "$EXPECTED_DIFF" ]]; then
38+ echo "found expected difference"
39+ else
40+ echo "unexpected difference when regenerating protobufs, verify they are checked in"
41+ exit 1
42+ fi
3743 - name : Build pydgraph
3844 run : |
3945 rm -rf dist
4046 # build binary wheel and a source tarball
4147 python -m build
4248 - name : Upload to PyPi
43- run : twine upload --username dgraph-io --password ${{ secrets.DGRAPH_PYPI_PASSWORD }} dist/*
49+ run : twine upload --username ${{ secrets.DGRAPH_PYPI_USERNAME }} --password ${{ secrets.DGRAPH_PYPI_PASSWORD }} dist/*
You can’t perform that action at this time.
0 commit comments