Skip to content

Commit b77d1b3

Browse files
committed
Semgrep is not available on Windows
1 parent 797b0d0 commit b77d1b3

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

.github/workflows/test.yml

+1
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ jobs:
6565
# Error: Process completed with exit code 1.
6666
test-windows:
6767

68+
needs: source-code-checks
6869
# https://github.com/actions/runner-images?tab=readme-ov-file#available-images
6970
runs-on: windows-2022
7071
strategy:

dev-requirements.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ pytest
1313
requirements-parser
1414
ruff
1515
selenium
16-
semgrep
16+
semgrep; platform_system == 'Linux'
1717
setuptools>=65.5.1 # not directly required, pinned by Snyk to avoid a vulnerability
1818
webdriver-manager

tests/test_memoryleak.py

+1
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,5 @@ def test_memoryleak(glances_stats_no_history, logger):
3232
snapshot_end = tracemalloc.take_snapshot()
3333
snapshot_diff = snapshot_end.compare_to(snapshot_begin, 'filename')
3434
memory_leak = sum([s.size_diff for s in snapshot_diff]) // iteration
35+
logger.info('Memory consume per iteration: {memory_leak} bytes')
3536
assert memory_leak < 1000, f'Memory leak: {memory_leak} bytes'

0 commit comments

Comments
 (0)