1616
1717 steps :
1818 - uses : actions/checkout@v3
19+ with :
20+ fetch-depth : 0
1921
2022 - name : Set up Python ${{ matrix.python-version }}
2123 uses : actions/setup-python@v4
@@ -34,12 +36,20 @@ jobs:
3436 run : |
3537 sudo apt-get update
3638 sudo apt-get install -y g++ python3-dev libomp-dev build-essential
39+ # Print system information
40+ echo "System information:"
41+ uname -a
42+ g++ --version
43+ python3 --version
3744
3845 - name : Install build dependencies
3946 run : |
4047 python -m pip install --upgrade pip setuptools wheel
4148 python -m pip install numpy pandas
4249 python -m pip install pytest pytest-cov
50+ # Print installed packages
51+ echo "Installed Python packages:"
52+ pip list
4353
4454 - name : Set up compiler environment
4555 run : |
@@ -58,12 +68,13 @@ jobs:
5868 # Print environment for debugging
5969 echo "Python include path: ${PYTHON_INCLUDE}"
6070 echo "NumPy include path: ${NUMPY_INCLUDE}"
71+ echo "Checking if include directories exist:"
72+ ls -la ${PYTHON_INCLUDE} || echo "Python include directory not found"
73+ ls -la ${NUMPY_INCLUDE} || echo "NumPy include directory not found"
6174
6275 - name : Create package structure
6376 run : |
64- mkdir -p utils
65- mkdir -p pattern_causality/utils
66- mkdir -p pattern_causality/cpp
77+ mkdir -p utils pattern_causality/utils pattern_causality/cpp
6778
6879 cat > utils/__init__.py << 'EOL'
6980 from .statespace import statespace
8899
89100 touch pattern_causality/utils/__init__.py
90101 touch pattern_causality/cpp/__init__.py
102+
103+ echo "Package structure created:"
104+ find . -type d
91105
92106 - name : Install package
93107 run : |
108+ echo "Building package in verbose mode..."
94109 python -m pip install -v -e .
95110
96111 - name : List directory structure and environment
@@ -102,13 +117,17 @@ jobs:
102117 echo "Python and package information:"
103118 python --version
104119 pip list
120+ echo "C++ source files:"
105121 ls -la pattern_causality/cpp/
106122
107123 - name : Run tests
108124 run : |
125+ echo "Running tests with coverage..."
109126 python -m pytest tests/ --cov=pattern_causality -v
110127
111128 - name : Upload coverage reports
129+ if : success()
112130 uses : codecov/codecov-action@v3
113131 with :
114- fail_ci_if_error : false
132+ fail_ci_if_error : false
133+ verbose : true
0 commit comments