Skip to content

Commit

Permalink
Align CI test-changes and tox.ini to run pytest
Browse files Browse the repository at this point in the history
  • Loading branch information
arturponinski committed Jan 28, 2022
1 parent 80cab36 commit 221cd2f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-changes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ jobs:

- name: Test python source code for mode ${{ env.testing }}
if: env.testing == 'simple'
run: nosetests -v petl --with-coverage --cover-package=petl
run: pytest --cov=petl petl

- name: Test documentation inside source code for mode ${{ env.testing }}
if: env.testing == 'full'
Expand All @@ -122,7 +122,7 @@ jobs:
python -m pip install -r requirements-formats.txt
echo "::endgroup::"
echo "::group::Perform doc test execution with coverage"
nosetests -v --with-coverage --cover-package=petl --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl -I"csv_py2\.py" -I"db\.py"
pytest --cov=petl petl
echo "::endgroup::"
- name: Coveralls
Expand Down
4 changes: 2 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ setenv =
py36,py37,py38,py39: PY_MAJOR_VERSION = py3
commands =
py27,py36,py38,py39: pytest --cov=petl petl
py37: nosetests -v --with-coverage --cover-package=petl --with-doctest --doctest-options=+NORMALIZE_WHITESPACE petl -I"csv_py2\.py" -I"db\.py"
py37: pytest --cov=petl petl
coverage report -m
deps =
:preinstall1: Cython<=0.29.21,>=0.29.13
Expand Down Expand Up @@ -55,7 +55,7 @@ setenv =
PETL_TEST_SMB=smb://WORKGROUP;petl:test@localhost/public/
PETL_TEST_SFTP=sftp://petl:test@localhost/public/
commands =
nosetests -v petl --with-coverage --cover-package=petl
pytest --cov=petl petl
deps =
{[testenv]deps}
-rrequirements-remote.txt
Expand Down

0 comments on commit 221cd2f

Please sign in to comment.