Semgrep is not available on Windows

This commit is contained in:
nicolargo 2024-12-29 13:15:16 +01:00
parent 797b0d06b1
commit b77d1b36b3
3 changed files with 3 additions and 1 deletions

View File

@ -65,6 +65,7 @@ jobs:
# Error: Process completed with exit code 1.
test-windows:
needs: source-code-checks
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
runs-on: windows-2022
strategy:

View File

@ -13,6 +13,6 @@ pytest
requirements-parser
ruff
selenium
semgrep
semgrep; platform_system == 'Linux'
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
webdriver-manager

View File

@ -32,4 +32,5 @@ def test_memoryleak(glances_stats_no_history, logger):
snapshot_end = tracemalloc.take_snapshot()
snapshot_diff = snapshot_end.compare_to(snapshot_begin, 'filename')
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'