diff --git a/.github/workflows/run-tests.yml b/.github/workflows/run-tests.yml index cbca50a1..0409c388 100644 --- a/.github/workflows/run-tests.yml +++ b/.github/workflows/run-tests.yml @@ -32,3 +32,29 @@ jobs: - name: Run nosetests run: | nosetests + + test-deb10-i386: + runs-on: ubuntu-latest + container: i386/debian:10 + steps: + - name: Install dependencies + run: | + apt-get update + apt-get install -y --no-install-recommends \ + python3-matplotlib \ + python3-numpy \ + python3-pandas \ + python3-requests \ + python3-scipy \ + python3-nose \ + git + + # Note: "actions/checkout@v2" requires libstdc++6:amd64 to be + # installed in the container. To keep things simple, use + # "actions/checkout@v1" instead. + # https://github.com/actions/checkout/issues/334 + - uses: actions/checkout@v1 + + - name: Run nosetests + run: | + nosetests3 diff --git a/tests/__init__.py b/tests/__init__.py new file mode 100644 index 00000000..65ad25c1 --- /dev/null +++ b/tests/__init__.py @@ -0,0 +1,16 @@ +import numpy as np + + +_np_error_state = {} + + +def setup_module(): + # Raise exceptions for arithmetic errors, except underflow + global _np_error_state + _np_error_state = np.seterr() + np.seterr('raise', under='ignore') + + +def teardown_module(): + # Restore original error handling state + np.seterr(**_np_error_state)