From 24c53396a750aaee11ff89771c29768e8cb84d64 Mon Sep 17 00:00:00 2001 From: Heidi Tong Date: Fri, 14 May 2021 13:50:49 -0700 Subject: [PATCH] Skip integration tests in weekly workflow --- .circleci/config.yml | 9 ++++++--- tests/test_integration.py | 11 +++++++---- 2 files changed, 13 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 15111c5..878845e 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -21,6 +21,9 @@ workflows: - master - main jobs: - - dwave/test-linux - - dwave/test-osx - - dwave/test-win + - dwave/test-linux: + integration-tests: "canary" + - dwave/test-osx: + integration-tests: "skip" + - dwave/test-win: + integration-tests: "skip" diff --git a/tests/test_integration.py b/tests/test_integration.py index cb71ecb..a017e15 100644 --- a/tests/test_integration.py +++ b/tests/test_integration.py @@ -17,20 +17,23 @@ import sys import unittest import random -import demo + import neal import numpy as np -project_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +import demo -class TestDemo(unittest.TestCase): +project_dir = os.path.dirname(os.path.dirname(os.path.abspath(__file__))) +class TestSmoke(unittest.TestCase): + @unittest.skipIf(os.getenv('SKIP_INT_TESTS'), "Skipping integration test.") def test_smoke(self): - """run demo.py and check that nothing crashes""" + """Run demo.py and check that nothing crashes""" demo_file = os.path.join(project_dir, 'demo.py') subprocess.check_output([sys.executable, demo_file]) +class TestDemo(unittest.TestCase): def test_scenario_setup(self): w, h = random.randint(10,20), random.randint(10,20)