Skip to content

Commit add0f43

Browse files
committed
Run pytest on Linux CI
1 parent fb4c7ab commit add0f43

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

ci/build-wheels.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,18 @@ set -e -x
33

44
cd /io
55

6-
# test and compile wheels
6+
# tests
77
for PYBIN in /opt/python/*/bin/; do
88
${PYBIN}/pip install -r /io/dev-requirements.txt
9+
${PYBIN}/python setup.py test
10+
done
11+
12+
rm bencoder.c
13+
14+
# compile wheels
15+
for PYBIN in /opt/python/*/bin/; do
16+
${PYBIN}/pip install -r /io/dev-requirements.txt
17+
${PYBIN}/cython bencoder.pyx
918
${PYBIN}/pip wheel /io/ -w /tmp/wheelhouse/
1019
done
1120

@@ -16,7 +25,7 @@ done
1625

1726
cp /tmp/wheelhouse/ordereddict* /io/wheelhouse
1827

19-
# Install packages and test
28+
# Install packages and test again
2029
for PYBIN in /opt/python/*/bin/; do
2130
${PYBIN}/pip install bencoder.pyx --no-index -f /io/wheelhouse
2231
(cd $/io; ${PYBIN}/py.test)

0 commit comments

Comments
 (0)