diff --git a/.github/workflows/pull_request.yml b/.github/workflows/pull_request.yml index 267142e..ef53ab1 100644 --- a/.github/workflows/pull_request.yml +++ b/.github/workflows/pull_request.yml @@ -26,10 +26,13 @@ jobs: gpiodetect sh gpio.sh sh i2c.sh - python test.py - python controls-enumeration.py + python pyrav4l2/.github/save_examples.py pyrav4l2/README.md + python examples/controls-enumeration.py devices: | vivid gpio 0 16 i2c 0x1C - python-packages: git+https://github.com/antmicro/pyrav4l2.git + python-packages: | + git+https://github.com/antmicro/pyrav4l2.git@3c071a7494b6b67263c4dddb87b47025338fd960 + git+https://github.com/antmicro/tuttest.git@c44309e0365c54759fb36864fb77bf8b347bd647 + repos: https://github.com/antmicro/pyrav4l2.git pyrav4l2 diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3e6d846..d53e7cc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -75,10 +75,14 @@ jobs: gpiodetect sh gpio.sh sh i2c.sh - python test.py - python controls-enumeration.py + python pyrav4l2/.github/save_examples.py pyrav4l2/README.md + python examples/controls-enumeration.py devices: | vivid gpio 0 16 i2c 0x1C - python-packages: git+https://github.com/antmicro/pyrav4l2.git + python-packages: | + git+https://github.com/antmicro/pyrav4l2.git@3c071a7494b6b67263c4dddb87b47025338fd960 + git+https://github.com/antmicro/tuttest.git@c44309e0365c54759fb36864fb77bf8b347bd647 + repos: https://github.com/antmicro/pyrav4l2.git pyrav4l2 + diff --git a/.github/workflows/run-locally.yml b/.github/workflows/run-locally.yml index 7463489..5023ca2 100644 --- a/.github/workflows/run-locally.yml +++ b/.github/workflows/run-locally.yml @@ -23,10 +23,14 @@ jobs: gpiodetect sh gpio.sh sh i2c.sh - python test.py - python controls-enumeration.py + python pyrav4l2/.github/save_examples.py pyrav4l2/README.md + python examples/controls-enumeration.py devices: | vivid gpio 0 16 i2c 0x1C - python-packages: git+https://github.com/antmicro/pyrav4l2.git + python-packages: | + git+https://github.com/antmicro/pyrav4l2.git@3c071a7494b6b67263c4dddb87b47025338fd960 + git+https://github.com/antmicro/tuttest.git@c44309e0365c54759fb36864fb77bf8b347bd647 + repos: https://github.com/antmicro/pyrav4l2.git pyrav4l2 + diff --git a/tests/controls-enumeration.py b/tests/controls-enumeration.py deleted file mode 100644 index c8dc983..0000000 --- a/tests/controls-enumeration.py +++ /dev/null @@ -1,8 +0,0 @@ -from pyrav4l2 import Device - -dev = Device("/dev/video0") -available_controls = dev.controls - -for control in available_controls: - print(control.name) - dev.reset_control_to_default(control) \ No newline at end of file diff --git a/tests/creating-device-id.py b/tests/creating-device-id.py deleted file mode 100644 index 71ab718..0000000 --- a/tests/creating-device-id.py +++ /dev/null @@ -1,14 +0,0 @@ -from pyrav4l2 import Device - -dev = Device("/dev/video0") -available_formats = dev.available_formats - -for color_format in available_formats.keys(): - print(f"{color_format}:") - for frame_size in available_formats[color_format]: - print(f" {frame_size}") - print() - -color_format = list(available_formats.keys())[0] -frame_size = available_formats[color_format][0] -dev.set_format(color_format, frame_size) \ No newline at end of file diff --git a/tests/creating-device-path.py b/tests/creating-device-path.py deleted file mode 100644 index 0156d8e..0000000 --- a/tests/creating-device-path.py +++ /dev/null @@ -1,3 +0,0 @@ -from pyrav4l2 import Device - -dev = Device("/dev/video0") \ No newline at end of file diff --git a/tests/current-format.py b/tests/current-format.py deleted file mode 100644 index b784e63..0000000 --- a/tests/current-format.py +++ /dev/null @@ -1,6 +0,0 @@ -from pyrav4l2 import Device - -dev = Device("/dev/video0") -color_format, frame_size = dev.get_format() -print(f"Color format: {color_format}") -print(f"Frame size: {frame_size}") \ No newline at end of file diff --git a/tests/info-about-device.py b/tests/info-about-device.py deleted file mode 100644 index c5260c8..0000000 --- a/tests/info-about-device.py +++ /dev/null @@ -1,9 +0,0 @@ -from pyrav4l2 import Device - -dev = Device("/dev/video0") -print(f"Device name: {dev.device_name}") -print(f"Driver name: {dev.driver_name}") -if dev.is_video_capture_capable: - print(f"Device supports video capturing") -else: - print(f"Device does not support video capturing") \ No newline at end of file diff --git a/tests/streaming-frames.py b/tests/streaming-frames.py deleted file mode 100644 index eaa08d9..0000000 --- a/tests/streaming-frames.py +++ /dev/null @@ -1,8 +0,0 @@ -from pyrav4l2 import Device, Stream - -dev = Device("/dev/video0") -for (i, frame) in enumerate(Stream(dev)): - print(f"Frame {i}: {len(frame)} bytes") - - if i >= 9: - break \ No newline at end of file diff --git a/tests/test.py b/tests/test.py deleted file mode 100644 index b14f407..0000000 --- a/tests/test.py +++ /dev/null @@ -1,5 +0,0 @@ -import sys - -if __name__ == "__main__": - print("Test") - sys.exit(0)