Skip to content

Commit

Permalink
Remove circleci
Browse files Browse the repository at this point in the history
  • Loading branch information
Erotemic committed Apr 27, 2024
1 parent 36230cd commit 71c82b4
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 150 deletions.
149 changes: 0 additions & 149 deletions .circleci/config.yml

This file was deleted.

21 changes: 20 additions & 1 deletion tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,27 @@ def test_version_agreement():
info1 = ub.cmd(f'{executable} -m line_profiler --version')
info2 = ub.cmd(f'{executable} -m kernprof --version')

if info1['ret'] != 0:
print(f'Error querying line-profiler version: {info1}')

if info2['ret'] != 0:
print(f'Error querying kernprof version: {info2}')

# Strip local version suffixes
version1 = info1['out'].strip().split('+')[0]
version2 = info2['out'].strip().split('+')[0]

assert version2 == version1, 'kernprof and line_profiler must be in sync'
if version2 != version1:
raise AssertionError(
'Version Mismatch: kernprof and line_profiler must be in sync. '
f'kernprof.line_profiler = {version1}. '
f'kernprof.__version__ = {version2}. '
)


if __name__ == '__main__':
"""
CommandLine:
python ~/code/line_profiler/tests/test_cli.py
"""
test_version_agreement()

0 comments on commit 71c82b4

Please sign in to comment.