mirror of https://github.com/nicolargo/glances.git
Semgrep is not available on Windows
This commit is contained in:
parent
797b0d06b1
commit
b77d1b36b3
|
|
@ -65,6 +65,7 @@ jobs:
|
||||||
# Error: Process completed with exit code 1.
|
# Error: Process completed with exit code 1.
|
||||||
test-windows:
|
test-windows:
|
||||||
|
|
||||||
|
needs: source-code-checks
|
||||||
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
|
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
|
||||||
runs-on: windows-2022
|
runs-on: windows-2022
|
||||||
strategy:
|
strategy:
|
||||||
|
|
|
||||||
|
|
@ -13,6 +13,6 @@ pytest
|
||||||
requirements-parser
|
requirements-parser
|
||||||
ruff
|
ruff
|
||||||
selenium
|
selenium
|
||||||
semgrep
|
semgrep; platform_system == 'Linux'
|
||||||
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
|
||||||
webdriver-manager
|
webdriver-manager
|
||||||
|
|
|
||||||
|
|
@ -32,4 +32,5 @@ def test_memoryleak(glances_stats_no_history, logger):
|
||||||
snapshot_end = tracemalloc.take_snapshot()
|
snapshot_end = tracemalloc.take_snapshot()
|
||||||
snapshot_diff = snapshot_end.compare_to(snapshot_begin, 'filename')
|
snapshot_diff = snapshot_end.compare_to(snapshot_begin, 'filename')
|
||||||
memory_leak = sum([s.size_diff for s in snapshot_diff]) // iteration
|
memory_leak = sum([s.size_diff for s in snapshot_diff]) // iteration
|
||||||
|
logger.info('Memory consume per iteration: {memory_leak} bytes')
|
||||||
assert memory_leak < 1000, f'Memory leak: {memory_leak} bytes'
|
assert memory_leak < 1000, f'Memory leak: {memory_leak} bytes'
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue