File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Build and Publish Python Package
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ - feat_add_python_client
8+
9+ jobs :
10+ build :
11+ runs-on : ubuntu-latest
12+ defaults :
13+ run :
14+ working-directory : python
15+
16+ steps :
17+ - uses : actions/checkout@v4
18+ with :
19+ fetch-depth : 0 # Fetch all history for git hash
20+
21+ - name : Set up Python
22+ uses : actions/setup-python@v5
23+ with :
24+ python-version : " 3.11"
25+
26+ - name : Install buf
27+ run : |
28+ curl -sSL "https://github.com/bufbuild/buf/releases/download/v1.28.1/buf-Linux-x86_64.tar.gz" | tar -xz -C /usr/local --strip-components 1
29+ working-directory : .
30+
31+ - name : Install Python dependencies
32+ run : |
33+ python -m pip install --upgrade pip
34+ pip install -e .
35+
36+ - name : Build Python package
37+ run : proton-build --hash ${{ github.sha }}
38+
39+ - name : Build wheel
40+ run : proton-publish
41+
42+ # - name: Upload wheel artifact
43+ # uses: actions/upload-artifact@v4
44+ # with:
45+ # name: python-wheel
46+ # path: python/dist/dist/*.whl
You can’t perform that action at this time.
0 commit comments