Skip to content

Update dependency protobuf to v4 (#17) #40

Update dependency protobuf to v4 (#17)

Update dependency protobuf to v4 (#17) #40

Workflow file for this run

---
name: tests
on: [push, pull_request]
jobs:
tests:
strategy:
matrix:
os:
- ubuntu-latest
runs-on: ${{ matrix.os }}
env:
PYTHON_VERSION: '3.9'
SRC_DIR: ./src/opensearch_sdk_py/protobuf
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ env.PYTHON_VERSION }}
uses: actions/setup-python@v4
with:
python-version: ${{ env.PYTHON_VERSION }}
- name: Set up Poetry
uses: abatilo/actions-poetry@v2
with:
poetry-version: '1.5.1'
- name: Set up Protobuf
uses: arduino/setup-protoc@v2
- name: Run Tests
run: |
poetry install
protoc -I=$SRC_DIR --python_out=$SRC_DIR $SRC_DIR/*.proto
2to3 --no-diff -n -w $SRC_DIR
poetry run pytest -v