diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index 4ddc4c00e3ba..491c5353550a 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -164,17 +164,9 @@ jobs: shell: bash run: cd rerun_py/tests && pytest - - name: Install requriements for e2e test - run: | - pip install -r examples/python/api_demo/requirements.txt - pip install -r examples/python/car/requirements.txt - pip install -r examples/python/multithreading/requirements.txt - pip install -r examples/python/plots/requirements.txt - pip install -r examples/python/text_logging/requirements.txt - - name: Run e2e test shell: bash - run: scripts/run_python_e2e_test.py --no-build # rerun-sdk is already built and installed + run: RUST_LOG=debug scripts/run_python_e2e_test.py --no-build # rerun-sdk is already built and installed - name: Unpack the wheel shell: bash @@ -388,19 +380,10 @@ jobs: shell: bash run: cd rerun_py/tests && pytest - - name: Install requriements for e2e test - if: ${{ matrix.run_tests }} - run: | - pip install -r examples/python/api_demo/requirements.txt - pip install -r examples/python/car/requirements.txt - pip install -r examples/python/multithreading/requirements.txt - pip install -r examples/python/plots/requirements.txt - pip install -r examples/python/text_logging/requirements.txt - - name: Run e2e test if: ${{ matrix.run_tests }} shell: bash - run: scripts/run_python_e2e_test.py --no-build # rerun-sdk is already built and installed + run: RUST_LOG=debug scripts/run_python_e2e_test.py --no-build # rerun-sdk is already built and installed - name: Unpack the wheel shell: bash diff --git a/scripts/run_python_e2e_test.py b/scripts/run_python_e2e_test.py index e654092bf0d8..a4993b936377 100755 --- a/scripts/run_python_e2e_test.py +++ b/scripts/run_python_e2e_test.py @@ -22,6 +22,7 @@ def main() -> None: parser = argparse.ArgumentParser(description="Logs Objectron data using the Rerun SDK.") parser.add_argument("--no-build", action="store_true", help="Skip building rerun-sdk") + parser.add_argument("--no-pip-reqs", action="store_true", help="Skip installing pip requirements") if parser.parse_args().no_build: print("Skipping building rerun-sdk - assuming it is already built and up-to-date!") @@ -38,6 +39,23 @@ def main() -> None: print(f"rerun-sdk built in {elapsed:.1f} seconds") print("") + if parser.parse_args().no_pip_reqs: + requirements = [ + "examples/python/api_demo/requirements.txt", + "examples/python/car/requirements.txt", + "examples/python/multithreading/requirements.txt", + "examples/python/plots/requirements.txt", + "examples/python/text_logging/requirements.txt", + ] + + print("----------------------------------------------------------") + print("Installing pip dependencies…") + start_time = time.time() + for requirement in requirements: + subprocess.run(["pip", "install", "--quiet", "-r", requirement], check=True) + print(f"pip install in {elapsed:.1f} seconds") + print("") + examples = [ # Trivial examples that don't require weird dependencies, or downloading data ("examples/python/api_demo/main.py", ["--demo", "all"]),