Skip to content

Commit

Permalink
Go back to 3.8, but still try plugin on Mac...
Browse files Browse the repository at this point in the history
  • Loading branch information
Myoldmopar committed Mar 15, 2024
1 parent 4ed3ba5 commit 86a0068
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build_and_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.12'
python-version: '3.8'
- name: Install Dependencies
run: pip3 install -r requirements.txt
# - name: Setup tmate session
Expand Down
9 changes: 5 additions & 4 deletions ep_testing/tests/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,12 @@ def run(self, install_root: str, verbose: bool, kwargs: dict):
my_env = os.environ.copy()
if self.os == OS.Windows: # my local comp didn't have cmake in path except in interact shells
my_env["PATH"] = install_root + ";" + my_env["PATH"]
# if self.os == OS.Mac:
if self.os == OS.Mac:
# while it runs OK locally, for some reason on GHA, running a Plugin file from the Python API seg-faults
idf_to_run = os.path.join(install_root, 'ExampleFiles', '1ZoneUncontrolled.idf')
# else:
# idf_to_run = os.path.join(install_root, 'ExampleFiles', 'PythonPluginCustomOutputVariable.idf')
idf_to_run = os.path.join(install_root, 'ExampleFiles', 'PythonPluginCustomOutputVariable.idf')
# '1ZoneUncontrolled.idf')
else:
idf_to_run = os.path.join(install_root, 'ExampleFiles', 'PythonPluginCustomOutputVariable.idf')
my_check_call(self.verbose, [py, python_file_path, '-D', idf_to_run], env=my_env)
print(' [DONE]!')
except EPTestingException as e:
Expand Down

0 comments on commit 86a0068

Please sign in to comment.