Skip to content

Commit 34ea7a2

Browse files
authored
Merge pull request #329 from MIT-LCP/arch-tests
Test suite improvements
2 parents 6be3066 + eed0bb9 commit 34ea7a2

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

.github/workflows/run-tests.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,29 @@ jobs:
3232
- name: Run nosetests
3333
run: |
3434
nosetests
35+
36+
test-deb10-i386:
37+
runs-on: ubuntu-latest
38+
container: i386/debian:10
39+
steps:
40+
- name: Install dependencies
41+
run: |
42+
apt-get update
43+
apt-get install -y --no-install-recommends \
44+
python3-matplotlib \
45+
python3-numpy \
46+
python3-pandas \
47+
python3-requests \
48+
python3-scipy \
49+
python3-nose \
50+
git
51+
52+
# Note: "actions/checkout@v2" requires libstdc++6:amd64 to be
53+
# installed in the container. To keep things simple, use
54+
# "actions/checkout@v1" instead.
55+
# https://github.com/actions/checkout/issues/334
56+
- uses: actions/checkout@v1
57+
58+
- name: Run nosetests
59+
run: |
60+
nosetests3

tests/__init__.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import numpy as np
2+
3+
4+
_np_error_state = {}
5+
6+
7+
def setup_module():
8+
# Raise exceptions for arithmetic errors, except underflow
9+
global _np_error_state
10+
_np_error_state = np.seterr()
11+
np.seterr('raise', under='ignore')
12+
13+
14+
def teardown_module():
15+
# Restore original error handling state
16+
np.seterr(**_np_error_state)

0 commit comments

Comments
 (0)