From 3cf62f8fa6328c3a7f14f03ccce27c1ebcff2c23 Mon Sep 17 00:00:00 2001 From: Ivan Kravets Date: Mon, 4 Jul 2022 18:04:45 +0300 Subject: [PATCH] Disable GoogleTest and Doctest frameworks on CI/Github Actions --- tests/commands/test_test.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/commands/test_test.py b/tests/commands/test_test.py index 595d5398..26089500 100644 --- a/tests/commands/test_test.py +++ b/tests/commands/test_test.py @@ -471,6 +471,10 @@ void unittest_uart_end(){} validate_cliresult(result) +@pytest.mark.skipif( + sys.platform == "win32" and os.environ.get("GITHUB_ACTIONS") == "true", + reason="skip Github Actions on Windows (MinGW issue)", +) def test_doctest_framework(clirunner, tmp_path: Path): project_dir = tmp_path / "project" project_dir.mkdir() @@ -597,6 +601,10 @@ int main(int argc, char **argv) assert json_report["failure_nums"] == 1 +@pytest.mark.skipif( + sys.platform == "win32" and os.environ.get("GITHUB_ACTIONS") == "true", + reason="skip Github Actions on Windows (MinGW issue)", +) def test_googletest_framework(clirunner, tmp_path: Path): project_dir = tmp_path / "project" shutil.copytree(