Skip to content

Commit 43662cb

Browse files
committed
Configure Bazel version and disable build isolation in CI workflows
1 parent 2c67da1 commit 43662cb

2 files changed

Lines changed: 16 additions & 3 deletions

File tree

.github/workflows/ci-test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- 'docs/**'
1010
workflow_dispatch:
1111

12+
env:
13+
USE_BAZEL_VERSION: 7.7.0
14+
1215
jobs:
1316
unit-tests:
1417
if: github.actor != 'copybara-service[bot]'
@@ -31,7 +34,10 @@ jobs:
3134
3235
- name: Install dependencies
3336
run: |
34-
pip install .[test]
37+
sudo apt update
38+
sudo apt install -y protobuf-compiler
39+
pip install --upgrade pip setuptools wheel numpy pyarrow
40+
pip install --no-build-isolation .[test]
3541
3642
- name: Run unit tests
3743
shell: bash

.github/workflows/wheels.yml

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
release:
77
types: [published]
88

9+
env:
10+
USE_BAZEL_VERSION: 7.7.0
11+
912
jobs:
1013
build-package:
1114
name: Build sdist
@@ -20,11 +23,15 @@ jobs:
2023
python-version: '3.10'
2124

2225
- name: Install python dependencies
23-
run: pip install --upgrade pip build twine
26+
run: |
27+
sudo apt update
28+
sudo apt install -y protobuf-compiler
29+
pip install --upgrade pip setuptools wheel numpy pyarrow build twine
30+
pip install --no-build-isolation .
2431
2532
- name: Build sdist and wheel
2633
run: |
27-
python -m build --sdist --wheel -o wheelhouse
34+
python -m build --sdist --wheel --no-isolation -o wheelhouse
2835
2936
- name: List and check sdist
3037
run: |

0 commit comments

Comments
 (0)