Skip to content

Fix comment for force_source #320

Fix comment for force_source

Fix comment for force_source #320

name: Build OpenSearch Protobufs PYTHON Artifacts
on:
pull_request:
jobs:
build-protobufs-python:
runs-on: ubuntu-latest
if: github.repository == 'opensearch-project/opensearch-protobufs'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install pytest
- name: Run unit tests
run: |
cd tools
python -m pytest test_generate_init_files.py -v --tb=short
- name: Build Python protobufs
run: bazel build //:python_protos_all
- name: Test Python imports
run: |
# Create virtual environment for testing
python -m venv test_env
source test_env/bin/activate
pip install grpcio protobuf
# Run the dedicated test script
export PYTHONPATH=bazel-bin
python tools/python/print_modules.py