Skip to content

Commit

Permalink
Skip integration tests in weekly workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Heidi Tong committed May 14, 2021
1 parent a2396a8 commit 24c5339
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 7 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
11 changes: 7 additions & 4 deletions tests/test_integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 24c5339

Please sign in to comment.