Skip to content

Commit c56f37a

Browse files
committed
fix: Install Python build dependencies in workflows
Add steps to install build, wheel, and setuptools before building. Both test and release workflows now install these dependencies. Fixes: No module named build error on macOS/Windows runners
1 parent e18691d commit c56f37a

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.github/workflows/release-python-packages.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,12 @@ jobs:
155155
if: matrix.platform == 'linux/amd64'
156156
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
157157

158+
- name: Install Python build dependencies
159+
shell: bash
160+
run: |
161+
python -m pip install --upgrade pip
162+
pip install build wheel setuptools
163+
158164
- name: Write version file for build
159165
shell: bash
160166
run: |

.github/workflows/test-python-bindings.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,11 @@ jobs:
8080
- name: Checkout code
8181
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
8282

83+
- name: Set up Python
84+
uses: actions/setup-python@e797f83bcb11b83ae66e0230d6156d7c80228e7c # v6.0.0
85+
with:
86+
python-version: '3.11'
87+
8388
- name: Download ArcadeDB JARs artifact
8489
uses: actions/download-artifact@fa0a91b85d4f404e444e00e005971372dc801d16 # v4.1.8
8590
with:
@@ -97,6 +102,12 @@ jobs:
97102
if: matrix.platform == 'linux/amd64'
98103
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
99104

105+
- name: Install Python build dependencies
106+
shell: bash
107+
run: |
108+
python -m pip install --upgrade pip
109+
pip install build wheel setuptools
110+
100111
- name: Build and test arcadedb-embedded (${{ matrix.platform }})
101112
shell: bash
102113
run: |

0 commit comments

Comments
 (0)