From 3d4975feddc441ae14dcdfa9b698d33d8fadaf68 Mon Sep 17 00:00:00 2001 From: x-io Technologies Date: Wed, 27 Sep 2023 13:26:23 +0100 Subject: [PATCH] Remove dont_show argument from CI --- .github/workflows/main.yml | 4 ++-- Python/advanced_example.py | 4 +--- Python/simple_example.py | 4 +--- 3 files changed, 4 insertions(+), 8 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 0936cda..0a82d91 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -51,8 +51,8 @@ jobs: CIBW_BUILD: ${{ matrix.python-version }}${{ matrix.target[1] }} CIBW_BEFORE_BUILD: pip install numpy CIBW_BEFORE_TEST: pip install numpy matplotlib - CIBW_TEST_COMMAND: cd {project}/Python && python advanced_example.py dont_show && python simple_example.py dont_show - CIBW_TEST_COMMAND_WINDOWS: cd /D {project}/Python && python advanced_example.py dont_show && python simple_example.py dont_show + CIBW_TEST_COMMAND: cd {project}/Python && python advanced_example.py && python simple_example.py + CIBW_TEST_COMMAND_WINDOWS: cd /D {project}/Python && python advanced_example.py && python simple_example.py - if: startsWith(github.ref, 'refs/tags/v') name: Upload wheel diff --git a/Python/advanced_example.py b/Python/advanced_example.py index 387a7f3..afd0c55 100644 --- a/Python/advanced_example.py +++ b/Python/advanced_example.py @@ -1,7 +1,6 @@ import imufusion import matplotlib.pyplot as pyplot import numpy -import sys # Import sensor data data = numpy.genfromtxt("sensor_data.csv", delimiter=",", skip_header=1) @@ -107,5 +106,4 @@ def plot_bool(axis, x, y, label): plot_bool(axes[10], timestamp, flags[:, 3], "Magnetic recovery") -if len(sys.argv) == 1: # don't show plots when script run by CI - pyplot.show() +pyplot.show() diff --git a/Python/simple_example.py b/Python/simple_example.py index 10af0c1..4999857 100644 --- a/Python/simple_example.py +++ b/Python/simple_example.py @@ -1,7 +1,6 @@ import imufusion import matplotlib.pyplot as pyplot import numpy -import sys # Import sensor data data = numpy.genfromtxt("sensor_data.csv", delimiter=",", skip_header=1) @@ -47,5 +46,4 @@ axes[2].grid() axes[2].legend() -if len(sys.argv) == 1: # don't show plots when script run by CI - pyplot.show() +pyplot.show()