Skip to content

Commit

Permalink
modified: .github/workflows/main.yml
Browse files Browse the repository at this point in the history
    modified:   eppy/pytest_helpers.py
    new file:   eppy/resources/iddfiles/Energy+V9_2_0.idd
    new file:   eppy/resources/idffiles/V9_2/smallfile.idf
  • Loading branch information
Santosh Philip committed Nov 5, 2023
1 parent 0e6fa44 commit 42c36ce
Show file tree
Hide file tree
Showing 4 changed files with 107,771 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:
ENERGYPLUS_VERSION: 9.2.0
ENERGYPLUS_SHA: ${{ inputs.energyplus-sha }}
ENERGYPLUS_INSTALL_VERSION: 9-2-0
EPPY_INTEGRATION: True
EPPY_INTEGRATION: TRUE
run: |
pytest -vs tests/test_runner.py
8 changes: 6 additions & 2 deletions eppy/pytest_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,18 +33,22 @@ def do_integration_tests():
"""
try:
# print(f"{os.environ['LANG'] = }")
print(f"{os.environ['GITHUB_ACTION'] = }")
print(f"{os.environ['ENERGYPLUS_SHA'] = }")
print(f"{os.environ['ENERGYPLUS_VERSION'] = }")
print(f"{os.environ['ENERGYPLUS_INSTALL_VERSION'] = }")
print(f"{os.environ['EPPY_INTEGRATION'] = }")
except KeyError as e:
print("not on CI - on local machine")
try:
print(f"{os.environ['EPPY_INTEGRATION'] = }")
result = os.environ['EPPY_INTEGRATION']
print(f" Actual EPPY_INTEGRATION = {result}")
# ---
except KeyError as e:
result = False
# result = os.getenv("EPPY_INTEGRATION", False)
if result == "True": # github CI returns strings 9no booleans)
if result == "TRUE": # github CI returns strings 9no booleans)
result = True
print(f" **** EPPY_INTEGRATION = {result}")
return result
Expand Down
Loading

0 comments on commit 42c36ce

Please sign in to comment.