Skip to content

Commit

Permalink
Remove dont_show argument from CI
Browse files Browse the repository at this point in the history
  • Loading branch information
xioTechnologies committed Sep 27, 2023
1 parent ba6975c commit 3d4975f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions Python/advanced_example.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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()
4 changes: 1 addition & 3 deletions Python/simple_example.py
Original file line number Diff line number Diff line change
@@ -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)
Expand Down Expand Up @@ -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()

0 comments on commit 3d4975f

Please sign in to comment.