1111 runs-on : ubuntu-latest
1212 strategy :
1313 matrix :
14- python-version : [3.8, 3.9 , "3.10", "3.11"]
14+ python-version : ["3.9" , "3.10", "3.11"]
1515
1616 steps :
1717 - uses : actions/checkout@v4
@@ -26,21 +26,34 @@ jobs:
2626 python -m pip install --upgrade pip
2727 pip install -r requirements.txt
2828
29- - name : Test imports
29+ - name : Test basic imports
3030 run : |
31- python -c "import pandas, numpy, matplotlib, yfinance, scipy, sklearn; print('All imports successful!')"
31+ python -c "import pandas, numpy, matplotlib, yfinance, scipy, sklearn; print('✅ All basic imports successful!')"
3232
3333 - name : Test data utilities
3434 run : |
35- python -c "from src.data_utils import download_prices; print('Data utils import successful!')"
35+ python -c "from src.data_utils import download_prices; print('✅ Data utils import successful!')"
3636
3737 - name : Test optimization modules
3838 run : |
39- python -c "from src.markowitz import markowitz_weights; print('Markowitz module import successful!')"
40- python -c "from src.risk_parity import risk_parity_weights; print('Risk parity module import successful!')"
41- python -c "from src.monte_carlo import monte_carlo_simulation; print('Monte Carlo module import successful!')"
42- python -c "from src.black_litterman import black_litterman_weights; print('Black-Litterman module import successful!')"
43- python -c "from src.ml_predictor import ml_predictor; print('ML predictor module import successful!')"
44- python -c "from src.hybrid_model import hybrid_weights; print('Hybrid model module import successful!')"
45- python -c "from src.custom_metrics_opt import custom_metrics_weights; print('Custom metrics module import successful!')"
46- python -c "from src.walkforward_backtest import walkforward_backtest; print('Walkforward backtest module import successful!')"
39+ python -c "from src.markowitz import markowitz_weights; print('✅ Markowitz module import successful!')"
40+ python -c "from src.risk_parity import risk_parity_weights; print('✅ Risk parity module import successful!')"
41+ python -c "from src.monte_carlo import monte_carlo_simulation; print('✅ Monte Carlo module import successful!')"
42+ python -c "from src.black_litterman import black_litterman_weights; print('✅ Black-Litterman module import successful!')"
43+ python -c "from src.ml_predictor import ml_predictor; print('✅ ML predictor module import successful!')"
44+ python -c "from src.hybrid_model import hybrid_weights; print('✅ Hybrid model module import successful!')"
45+ python -c "from src.custom_metrics_opt import custom_metrics_weights; print('✅ Custom metrics module import successful!')"
46+ python -c "from src.walkforward_backtest import walkforward_backtest; print('✅ Walkforward backtest module import successful!')"
47+
48+ - name : Test basic functionality
49+ run : |
50+ python -c "
51+ import numpy as np
52+ from src.risk_parity import risk_parity_weights
53+
54+ # Test basic functionality
55+ cov_matrix = np.array([[0.01, 0.005], [0.005, 0.01]])
56+ weights = risk_parity_weights(cov_matrix)
57+ print(f'✅ Risk parity weights calculated: {weights}')
58+ print('✅ Basic functionality test passed!')
59+ "
0 commit comments