Skip to content

Commit

Permalink
Updated nox: Run all Python tests, coverage and lint by default
Browse files Browse the repository at this point in the history
  • Loading branch information
heuer committed Oct 28, 2023
1 parent afb4839 commit 59ba672
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
import shutil
import nox

_PY_VERSIONS = ('3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3')
_PY_VERSIONS = ('3.5', '3.6', '3.7', '3.8', '3.9', '3.10', '3.11', '3.12', 'pypy3')
_PY_DEFAULT_VERSION = sys.version[:4]

nox.options.sessions = ['test-{}'.format(_PY_DEFAULT_VERSION), 'test-pypy3']
nox.options.sessions = chain(['test-{}'.format(version) for version in _PY_VERSIONS], ['coverage', 'lint'])


@nox.session(python=_PY_VERSIONS)
Expand Down Expand Up @@ -59,6 +59,7 @@ def coverage(session):
"""\
Run coverage.
"""
session.install('-Ur', 'tests/requirements.txt')
session.install('.')
html_output_dir = os.path.abspath(os.path.join(session.create_tmp(), 'html'))
session.run('pytest', '--cov=segno', '--cov-report=term', '--cov-report=html:%s' % html_output_dir)
Expand Down

0 comments on commit 59ba672

Please sign in to comment.