Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/run-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
16 changes: 16 additions & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -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)