Skip to content

Commit 6a3879c

Browse files
committed
Skip the memray in actions, it was being inconsistent
1 parent 201fd5b commit 6a3879c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/test_memory.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import contextlib
44
import logging
5+
import os
56
import platform
67

78
import pytest
@@ -15,6 +16,10 @@ class TestMemory:
1516
@pytest.mark.skipif(
1617
platform.system() == "Windows", reason="Memray doesn't work on Windows."
1718
)
19+
@pytest.mark.skipif(
20+
os.environ.get("GITHUB_ACTIONS", "") == "true",
21+
reason="Memory usage in actions was not being predictable.",
22+
)
1823
@pytest.mark.parametrize("denominator", [2, 0])
1924
@pytest.mark.limit_memory("10 MB")
2025
def test_repeated_calls_do_not_accumulate_memory(self, denominator):

0 commit comments

Comments
 (0)