Skip to content

Commit 5c73e68

Browse files
Add protos check action
1 parent 7471412 commit 5c73e68

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: cd-pydgraph
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
releasetag:
7+
description: releasetag
8+
required: true
9+
type: string
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
pydgraph-build:
16+
runs-on: warp-ubuntu-latest-x64-16x
17+
steps:
18+
- uses: actions/checkout@v4
19+
with:
20+
ref: "${{ github.event.inputs.releasetag }}"
21+
- name: Set up Python
22+
uses: actions/setup-python@v5
23+
with:
24+
python-version-file: pyproject.toml
25+
- name: Install dependencies
26+
run: |
27+
python -m pip install --upgrade pip
28+
python -m pip install .[dev]
29+
# use twine to upload to pypi
30+
python -m pip install twine
31+
- name: Verify that protobufs are checked in
32+
run: |
33+
python scripts/protogen.py
34+
git diff --exit-code -- .
35+
- name: Build pydgraph
36+
run: |
37+
rm -rf dist
38+
# build binary wheel and a source tarball
39+
python -m build
40+
- name: Upload to PyPi
41+
run:
42+
twine upload --username ${{ secrets.DGRAPH_PYPI_USERNAME }} --password ${{
43+
secrets.DGRAPH_PYPI_PASSWORD }} dist/*

0 commit comments

Comments
 (0)