Skip to content

Commit 19dfba5

Browse files
jlnavjmlarson1
andauthored
Testing/revoke torch for 312 (#1161)
* Removing badge * revoke multitask_gp_ax test for python 3.12, plus ax-platform dep install on that python * Removing ytopt from 3.12 as well * adjust various steps to not run installs/tests on newer python versions * fix heffte exe move * try ignoring deprecationwarning for balsam test * need to filter warning before Executors imported * removing error-on-warnings in extensive tests, for now * always install octave and tasmanian * revoke test_heffte --------- Co-authored-by: Jeffrey Larson <jmlarson@anl.gov>
1 parent a0a9b34 commit 19dfba5

2 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/extra.yml

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,9 @@ jobs:
100100
python -m pip install --upgrade pip
101101
conda env update --file install/gen_deps_environment.yml
102102
103+
- name: Install ax-platform
104+
if: matrix.python-version != '3.12'
105+
run: |
103106
pip install ax-platform==0.2.8
104107
105108
- name: Install surmise
@@ -108,7 +111,7 @@ jobs:
108111
pip install --upgrade git+https://github.com/bandframework/surmise.git@develop
109112
110113
- name: Build ytopt and dependencies
111-
if: matrix.python-version != '3.11' && matrix.os != 'macos-latest'
114+
if: matrix.python-version <= '3.10' && matrix.os != 'macos-latest'
112115
run: |
113116
pip install scikit-learn==1.1.2
114117
pip install pandas==1.5.3
@@ -128,9 +131,8 @@ jobs:
128131
cd ..
129132
130133
- name: Install generator dependencies for Ubuntu tests
131-
if: matrix.os == 'ubuntu-latest' && steps.cache.outputs.cache-hit != 'true'
134+
if: matrix.os == 'ubuntu-latest' && steps.cache.outputs.cache-hit != 'true' && matrix.python-version != '3.12'
132135
run: |
133-
conda install octave
134136
sudo apt-get install bc
135137
136138
# begin heffte build and dependencies
@@ -149,16 +151,17 @@ jobs:
149151
# pip install git+https://github.com/dragonfly/dragonfly.git
150152
pip install git+https://github.com/jlnav/dragonfly.git@fix/remove_npobject
151153
152-
pip install scikit-build packaging Tasmanian --user
153154
154155
- name: Copy heffte exe on cache-hit
155-
if: matrix.os == 'ubuntu-latest' && steps.cache.outputs.cache-hit != 'false'
156+
if: matrix.os == 'ubuntu-latest' && steps.cache.outputs.cache-hit != 'false' && matrix.python-version != '3.12'
156157
run: |
157158
cd /home/runner/work/libensemble/libensemble
158159
cp ./heffte/build/benchmarks/speed3d_c2c ./libensemble/tests/regression_tests/
159160
160161
- name: Install other testing dependencies
161162
run: |
163+
conda install octave
164+
pip install scikit-build packaging Tasmanian --user
162165
conda install pyzmq
163166
pip install -r install/testing_requirements.txt
164167
pip install -r install/misc_feature_requirements.txt
@@ -184,22 +187,25 @@ jobs:
184187
pip install -e .
185188
flake8 libensemble
186189
187-
- name: Remove ytopt-heffte test on Python 3.11 (easy way)
188-
if: matrix.python-version == '3.11'
190+
- name: Remove various tests on newer pythons
191+
if: matrix.python-version >= '3.11'
189192
run: |
193+
rm ./libensemble/tests/regression_tests/test_heffte.py
190194
rm ./libensemble/tests/regression_tests/test_ytopt_heffte.py
195+
rm ./libensemble/tests/regression_tests/test_persistent_gp.py
196+
rm ./libensemble/tests/regression_tests/test_persistent_gp_multitask_ax.py
191197
192198
- name: Run extensive tests, Ubuntu
193199
if: matrix.os == 'ubuntu-latest'
194200
run: |
195-
./libensemble/tests/run-tests.sh -e -A "-W error" -z -${{ matrix.comms-type }}
201+
./libensemble/tests/run-tests.sh -e -z -${{ matrix.comms-type }}
196202
197203
- name: Run extensive tests, macOS
198204
if: matrix.os == 'macos-latest'
199205
env:
200206
CONDA_BUILD_SYSROOT: /Users/runner/work/libensemble/sdk/MacOSX10.15.sdk
201207
run: |
202-
./libensemble/tests/run-tests.sh -e -A "-W error" -z -${{ matrix.comms-type }}
208+
./libensemble/tests/run-tests.sh -e -z -${{ matrix.comms-type }}
203209
204210
- name: Merge coverage
205211
run: |

libensemble/tests/unit_tests/test_executor_balsam.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,16 @@
44
import datetime
55
import os
66
import sys
7+
import warnings
78
from dataclasses import dataclass
89

910
import mock
1011
import pytest
1112

12-
from libensemble.executors.executor import Application, Executor, ExecutorException, TimeoutExpired
13+
warnings.filterwarnings("ignore", category=DeprecationWarning)
14+
15+
16+
from libensemble.executors.executor import Application, Executor, ExecutorException, TimeoutExpired # noqa E402
1317

1418

1519
def setup_module(module):

0 commit comments

Comments
 (0)