Skip to content

Commit

Permalink
ci: add timeout, drop Python3.8 support
Browse files Browse the repository at this point in the history
  • Loading branch information
svinota committed Dec 23, 2024
1 parent b216550 commit 00e975f
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
9 changes: 5 additions & 4 deletions noxfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
'lab',
'neutron',
'integration',
'linux-python3.8',
'linux-python3.9',
'linux-python3.10',
'linux-python3.11',
Expand Down Expand Up @@ -79,13 +78,17 @@ def options(module, config):
'./log',
'--junitxml=junit.xml',
]
timeout = 60
if config.get('exitfirst', True):
ret.append('--exitfirst')
if config.get('verbose', True):
ret.append('--verbose')
if config.get('fail_on_warnings'):
ret.insert(1, 'error')
ret.insert(1, '-W')
if config.get('timeout'):
timeout = config["timeout"]
ret.append(f'--timeout={timeout}')
if config.get('pdb'):
ret.append('--pdb')
if config.get('coverage'):
Expand Down Expand Up @@ -259,9 +262,7 @@ def integration(session, config):
session.run(*options('test_integration', config))


@nox.session(
python=['python3.8', 'python3.9', 'python3.10', 'python3.11', 'python3.12']
)
@nox.session(python=['python3.9', 'python3.10', 'python3.11', 'python3.12'])
@add_session_config
def linux(session, config):
'''Run Linux functional tests. Requires root to run all the tests.'''
Expand Down
1 change: 1 addition & 0 deletions requirements.dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ netaddr
pytest
pytest-cov
pytest-asyncio
pytest-timeout
pre-commit
findimports
1 change: 1 addition & 0 deletions requirements.repo.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
nox
pytest
pytest-cov
pytest-timeout
setuptools

0 comments on commit 00e975f

Please sign in to comment.