Skip to content

Commit

Permalink
switch away from nose for test discovery (#172)
Browse files Browse the repository at this point in the history
* enable 3.10 wheels, which weren't enabled by accident
  • Loading branch information
mgeplf authored Dec 8, 2021
1 parent 148a9eb commit 1643fac
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/publish-sdist-wheels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ on: [pull_request, push]

env:
CIBW_BUILD_VERBOSITY: 3
CIBW_BUILD: 'cp3?-*'
CIBW_SKIP: 'cp35-* cp36-* *-musllinux_* *-manylinux_i686'
CIBW_BEFORE_TEST: pip install nose mock
CIBW_TEST_COMMAND: nosetests -s -v -P {project}/python/tests
CIBW_BUILD: 'cp*'
CIBW_SKIP: 'cp35-* *-musllinux_* *-manylinux_i686'
CIBW_BEFORE_TEST: pip install nose
CIBW_TEST_COMMAND: ( cd {project}/python/tests; python -m unittest -v )

jobs:
build_wheels:
Expand Down
8 changes: 4 additions & 4 deletions ci/python_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ source $BIN/activate
set -u

$BIN/pip -v install --upgrade pip setuptools wheel
$BIN/pip install nose

# run tests with nose
$BIN/pip -v install --force .
$BIN/nosetests -s -v -P python/tests

pushd python/tests
$BIN/python -m unittest -v
popd

# run tests through setup.py; also builds documentation
$BIN/python setup.py test
1 change: 1 addition & 0 deletions python/tests/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -568,5 +568,6 @@ def test_json(self):
temp_config = json.loads(self.config.json)
self.assertEqual(temp_config['run']['tstop'], 1000)


if __name__ == '__main__':
unittest.main()

0 comments on commit 1643fac

Please sign in to comment.