-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Add pytests * test experts * Changed the padding position (#126) * Mark agents as static if they spawn near goal (#125) * Init static agents * Fix the compile error * Formatting * Add some rendering support * Check the first valid state against goal * Working test on experts * Configure pytests * Add pytest to github workflow * remove sample test * Updated poetry lock * Remove unnecassry imports * Build in release mode * Remove poetry lock file * Reduced consts to use less memory * Update manual.yml * upload dumps * Dont init agents if not valid on first timestep * Add param * Change name and fix test * Change comment * Modified workflow * cache workflow downloads * Revert prev changes
- Loading branch information
1 parent
22d2db1
commit dee6972
Showing
10 changed files
with
130,742 additions
and
478 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import subprocess | ||
import pytest | ||
import os | ||
|
||
@pytest.fixture(scope="session", autouse=True) | ||
def run_ctest(): | ||
build_dir = "build" # Replace this with the path to your build directory | ||
print("Running ctest in", os.path.abspath(build_dir)) | ||
|
||
# Run ctest in the build directory | ||
try: | ||
result = subprocess.run(["ctest"], check=True, cwd=build_dir, capture_output=True, text=True) | ||
print("ctest stdout:") | ||
print(result.stdout) | ||
print("ctest stderr:") | ||
print(result.stderr) | ||
except subprocess.CalledProcessError as e: | ||
print(f"ctest failed with error code {e.returncode}") | ||
print("Error output:") | ||
print(e.output) | ||
raise # Re-raise the exception to make pytest fail |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[pytest] | ||
addopts = --ignore=external/madrona/external/SPIRV-Reflect --ignore=external/madrona/external/nanobind --ignore=external/madrona/external/tinyusdz --ignore=external/madrona/external/googletest |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.