|
23 | 23 | 'pyccel_lint': '3.8',
|
24 | 24 | 'pylint': '3.8',
|
25 | 25 | 'spelling': '3.8',
|
26 |
| - 'windows': '3.8' |
| 26 | + 'windows': '3.8', |
| 27 | + 'cuda': '-' |
27 | 28 | }
|
28 | 29 |
|
29 | 30 | test_names = {
|
|
40 | 41 | 'pyccel_lint': "Pyccel best practices",
|
41 | 42 | 'pylint': "Python linting",
|
42 | 43 | 'spelling': "Spelling verification",
|
43 |
| - 'windows': "Unit tests on Windows" |
| 44 | + 'windows': "Unit tests on Windows", |
| 45 | + 'cuda': "Unit tests on Linux with cuda" |
44 | 46 | }
|
45 | 47 |
|
46 |
| -test_dependencies = {'coverage':['linux']} |
| 48 | +test_dependencies = {'coverage':['linux', 'cuda']} |
47 | 49 |
|
48 | 50 | tests_with_base = ('coverage', 'docs', 'pyccel_lint', 'pylint')
|
49 | 51 |
|
50 | 52 | pr_test_keys = ('linux', 'windows', 'macosx', 'coverage', 'docs', 'pylint',
|
51 |
| - 'pyccel_lint', 'spelling') |
| 53 | + 'pyccel_lint', 'spelling', 'cuda') |
52 | 54 |
|
53 | 55 | review_stage_labels = ["needs_initial_review", "Ready_for_review", "Ready_to_merge"]
|
54 | 56 |
|
@@ -420,7 +422,7 @@ def is_test_required(self, commit_log, name, key, state):
|
420 | 422 | True if the test should be run, False otherwise.
|
421 | 423 | """
|
422 | 424 | print("Checking : ", name, key)
|
423 |
| - if key in ('linux', 'windows', 'macosx', 'anaconda_linux', 'anaconda_windows', 'intel'): |
| 425 | + if key in ('linux', 'windows', 'macosx', 'anaconda_linux', 'anaconda_windows', 'intel', 'cuda'): |
424 | 426 | has_relevant_change = lambda diff: any((f.startswith('pyccel/') or f.startswith('tests/')) #pylint: disable=unnecessary-lambda-assignment
|
425 | 427 | and f.endswith('.py') and f != 'pyccel/version.py'
|
426 | 428 | for f in diff)
|
|
0 commit comments