Skip to content

Commit 83df376

Browse files
authored
Merge pull request #227 from nasa/manual-release-test
2 parents 28276cc + 207aed5 commit 83df376

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

.github/workflows/manual_release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,9 @@ on:
55

66
jobs:
77
run_tests:
8-
timeout-minutes: 30
8+
timeout-minutes: 45
99
strategy:
10+
fail-fast: false
1011
matrix:
1112
python-version: ['3.9', '3.12'] # TODO: Add 3.13 when it is released
1213
os: [ubuntu-latest, macos-latest, macos-13, windows-latest]
@@ -22,6 +23,7 @@ jobs:
2223
- name: Run tests
2324
run: python -m tests
2425
- name: Upload coverage to Codecov
26+
if: ${{ matrix.python-version }} == '3.12' && ${{ matrix.os }} == 'ubuntu-latest'
2527
uses: codecov/codecov-action@v3
2628
with:
27-
file: ./coverage.xml
29+
file: ./coverage.xml

pyproject.toml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,16 @@ classifiers = [
5555

5656
[project.optional-dependencies]
5757
datadriven = [
58-
"tensorflow>=2.18.0", # Note that older versions of tensorflow may work with older numpy and numpoly versions
59-
"chaospy>=4.3.17" # For PCE
58+
# Dependency workaround for Intel-based Macs due to tensorflow version constraints at 2.16.2
59+
"tensorflow==2.16.2; platform_system == 'Darwin' and platform_machine != 'arm64'",
60+
"numpy==1.26.4; platform_system == 'Darwin' and platform_machine != 'arm64'",
61+
"numpoly==1.2.12; platform_system == 'Darwin' and platform_machine != 'arm64'",
62+
63+
# Everything else (Apple Silicon Macs, Linux, Windows, etc.) Note that older versions of tensorflow may work with older numpy and numpoly versions
64+
"tensorflow>=2.18.0; platform_system != 'Darwin' or platform_machine == 'arm64'",
65+
66+
# For PCE
67+
"chaospy>=4.3.17"
6068
]
6169

6270
test = [

tests/test_tutorials.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
class TestTutorials(unittest.TestCase):
1212
def run_notebook_test(self, notebook_path):
13-
with testbook(notebook_path, execute=True) as tb:
13+
with testbook(notebook_path, execute=True, timeout=1200) as tb:
1414
self.assertEqual(tb.__class__.__name__, "TestbookNotebookClient")
1515

1616
def test_notebook_tutorials(self):

0 commit comments

Comments
 (0)