-
Notifications
You must be signed in to change notification settings - Fork 0
91 lines (78 loc) · 2.71 KB
/
debug.yml
File metadata and controls
91 lines (78 loc) · 2.71 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
name: Debug CI
on:
workflow_dispatch:
push:
branches: [ debug-* ]
jobs:
debug:
name: Debug on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: System info
run: |
echo "=== System Information ==="
echo "OS: ${{ matrix.os }}"
python --version
python -m pip --version
- name: Show directory structure
run: |
echo "=== Repository Structure ==="
ls -la
echo ""
echo "=== Tests Directory ==="
ls -la tests/
echo ""
echo "=== Alphalens Package ==="
ls -la alphalens/
- name: Install minimal dependencies
run: |
python -m pip install --upgrade pip
# Install core dependencies in order to avoid import issues
python -m pip install numpy
python -m pip install pandas
python -m pip install scipy matplotlib seaborn statsmodels IPython pytest parameterized
python -m pip install -U "git+https://github.com/cloudQuant/empyrical.git"
- name: Install package
run: |
echo "=== Installing alphalens ==="
python -m pip install -e .
echo ""
echo "=== Installed packages ==="
python -m pip list
- name: Test imports
run: |
echo "=== Testing imports ==="
python -c "import sys; print('Python path:', sys.path)"
python -c "import alphalens; print('Alphalens location:', alphalens.__file__)"
python -c "from alphalens import utils; print('utils imported')"
python -c "from alphalens import performance; print('performance imported')"
python -c "from alphalens import plotting; print('plotting imported')"
python -c "from alphalens import tears; print('tears imported')"
- name: Find test files
run: |
echo "=== Finding test files ==="
find . -name "test_*.py" -type f || echo "No test files found with find"
echo ""
echo "=== Pytest collection ==="
python -m pytest --collect-only tests/
- name: Run single test verbose
run: |
echo "=== Running single test ==="
python -m pytest tests/test_utils.py -vvs -k "test" | head -50
continue-on-error: true
env:
MPLBACKEND: Agg
- name: List all available tests
run: |
echo "=== All available tests ==="
python -m pytest tests/ --collect-only -q