Skip to content

Commit 4b9f8bd

Browse files
committed
WIP: testing ci x3
1 parent 6ae7e7a commit 4b9f8bd

File tree

2 files changed

+19
-4
lines changed

2 files changed

+19
-4
lines changed

.github/workflows/test-pass.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,11 @@
11
name: "test-pass"
22

3-
on: [push, pull_request]
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
49

510
jobs:
611
windows:

tests/integration_tests/pybinds_tests/test_pybind_units.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,25 @@
2222
def test_dfb_test_simple():
2323
assert dfb.dfb_test.test() == True, "The test function should return True"
2424

25+
def debug_directory_contents(path):
26+
print(f"Checking contents of directory: {path}")
27+
if os.path.exists(path):
28+
for file in os.listdir(path):
29+
print(file)
30+
else:
31+
print(f"Directory does not exist: {path}")
32+
2533
# getting the test data paths
2634
def get_ply_cloud_roof_quarter_path():
2735
base_test_data_dir = os.getenv('DF_TEST_DATA_DIR', os.path.abspath(os.path.join(os.path.dirname(__file__), '..', '..', 'test_data')))
2836
ply_file_path = os.path.join(base_test_data_dir, "roof_quarter.ply")
2937
if not os.path.exists(ply_file_path):
3038
raise FileNotFoundError(f"PLY file not found at: {ply_file_path}")
31-
# TODO: debug
32-
print(f"base_test_data_dir: {base_test_data_dir}")
33-
print(f"ply_file_path: {ply_file_path}")
39+
print(f"base_test_data_dir: {base_test_data_dir}") # Debug
40+
print(f"ply_file_path: {ply_file_path}") # Debug
41+
debug_directory_contents(base_test_data_dir)
42+
with open(ply_file_path, 'r') as file:
43+
print(file.read()) # Print file contents for debugging
3444
return ply_file_path
3545

3646
#------------------------------------------------------------------------------

0 commit comments

Comments
 (0)