Skip to content

Removed unused C++ ETFeeder #393

Removed unused C++ ETFeeder

Removed unused C++ ETFeeder #393

Workflow file for this run

name: Python Unit Tests
on: pull_request
jobs:
python-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v2
- name: Setup Python Environment
uses: actions/setup-python@v2
with:
python-version: '3.11'
- name: Install Chakra
run: |
pip install .
- name: Install PARAM
run: |
git clone https://github.com/facebookresearch/param.git
cd param/et_replay
git checkout 7b19f586dd8b267333114992833a0d7e0d601630
pip install .
- name: Install Dependencies
run: |
pip install -r requirements-dev.txt
- name: Run Unit Tests
run: |
python -m pytest -vv tests
# The generated *_pb2.py checks the protobuf runtime on import. Import with the latest runtime pip picked, then
# again with the lowest one pyproject.toml allows, to catch a gencode newer than the declared protobuf lower bound.
- name: Protobuf Gencode/Runtime Smoke Test
run: |
python -c "import chakra.schema.protobuf.et_def_pb2, chakra.schema.protobuf.storage_pb2"
floor=$(python -c "import re; from importlib.metadata import requires; print(next(re.search(r'>=([0-9.]+)', r).group(1) for r in requires('mlc-chakra') if r.startswith('protobuf')))")
pip install "protobuf==$floor"
python -c "import chakra.schema.protobuf.et_def_pb2, chakra.schema.protobuf.storage_pb2"