Skip to content

Commit

Permalink
remove dependency on nose
Browse files Browse the repository at this point in the history
  • Loading branch information
kaklise committed Nov 18, 2023
1 parent 6392aea commit ab4636e
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 5 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ jobs:
run: |
export PATH=/usr/share/miniconda/bin:$PATH
coverage erase
coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=chama --omit="*/tests/*" -m nose -v --nologcapture --with-doctest --doctest-extension=.rst --traverse-namespace documentation/*.rst chama
#coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=chama --omit="*/tests/*" -m nose -v --nologcapture --with-doctest --doctest-extension=.rst --traverse-namespace documentation/*.rst chama
coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=chama --omit="*/tests/*" -m pytest --doctest-modules --doctest-glob="*.rst" chama
coverage run --context=${{ matrix.os }}.py${{ matrix.python-version }} --source=chama --omit="*/tests/*" --append -m pytest --doctest-glob="*.rst" documentation
env:
COVERAGE_FILE: .coverage.${{ matrix.python-version }}.${{ matrix.os }}
- name: Save coverage
Expand Down
4 changes: 2 additions & 2 deletions documentation/developers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ The latest stable version is hosted on PyPI at https://pypi.python.org/pypi/cham
**Testing:**
Automated testing is run using TravisCI at https://travis-ci.org/sandialabs/chama.
Test coverage statistics are collected using Coveralls at https://coveralls.io/github/sandialabs/chama.
Tests can be run locally using nosetests::
Tests can be run locally using pytest::
nosetests -v --with-coverage --cover-package=chama chama
pytest chama

**Documentation:**
Documentation is built using Read the Docs and hosted at https://chama.readthedocs.io.
Expand Down
2 changes: 1 addition & 1 deletion documentation/installation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ Optional Python package dependencies include:

* Matplotlib [Hunt07]_: Used to produce graphics,
http://matplotlib.org.
* nose: Used to run software tests, http://nose.readthedocs.io.
* pytest: Used to run software tests, https://docs.pytest.org/.

Required Pyomo supported MIP solver:

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ numpy
scipy

# Optional
nose
pytest
matplotlib

0 comments on commit ab4636e

Please sign in to comment.