Commit 0fc9b1d
committed
fix: Resolve CI workflow issues for Python bindings
Fixed multiple issues in the GitHub Actions workflow that would cause
CI failures:
1. Lint Job Fixes:
- Removed unnecessary 'uv venv' creation
- Changed from 'uv run' to direct command execution
- Installed dependencies with --system flag
- Reordered Python setup before uv installation
2. Test Job Fixes:
- Removed working-directory from test dependency installation
- This ensures dependencies are installed system-wide
- Fixed coverage file path (removed leading ./)
- Added fail_ci_if_error: false for codecov upload
- Made codecov upload continue-on-error
3. Benchmark Job Fixes:
- Added missing cache workspace configuration
- Removed working-directory from benchmark dependency installation
- Ensures consistent dependency installation across jobs
4. Wheel Building Fixes:
- Changed from explicit interpreter list to --find-interpreter
- This auto-detects available Python versions
- More robust across different OS environments
- Fixes compatibility issues with maturin-action
Why These Changes:
- uv venv creates virtual environments, but we need system install for CI
- Working directory scoping caused pip to install in wrong locations
- Codecov failures shouldn't fail the entire CI pipeline
- Auto-detection of interpreters is more reliable than hardcoding
These fixes ensure:
✅ Code quality checks run correctly
✅ Tests execute with proper package visibility
✅ Benchmarks can find the installed package
✅ Wheels build for all supported Python versions
✅ CI is resilient to non-critical failures1 parent 6fe145c commit 0fc9b1d
1 file changed
Lines changed: 15 additions & 16 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | | - | |
37 | 32 | | |
38 | 33 | | |
39 | 34 | | |
40 | 35 | | |
41 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | | - | |
44 | | - | |
45 | | - | |
46 | | - | |
| 43 | + | |
47 | 44 | | |
48 | 45 | | |
49 | 46 | | |
50 | | - | |
| 47 | + | |
51 | 48 | | |
52 | 49 | | |
53 | 50 | | |
54 | | - | |
| 51 | + | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
58 | | - | |
| 55 | + | |
59 | 56 | | |
60 | 57 | | |
61 | 58 | | |
| |||
96 | 93 | | |
97 | 94 | | |
98 | 95 | | |
99 | | - | |
100 | 96 | | |
101 | 97 | | |
102 | 98 | | |
| |||
107 | 103 | | |
108 | 104 | | |
109 | 105 | | |
110 | | - | |
| 106 | + | |
111 | 107 | | |
112 | 108 | | |
| 109 | + | |
| 110 | + | |
113 | 111 | | |
114 | 112 | | |
115 | 113 | | |
| |||
122 | 120 | | |
123 | 121 | | |
124 | 122 | | |
| 123 | + | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
141 | 141 | | |
142 | 142 | | |
143 | 143 | | |
144 | | - | |
145 | 144 | | |
146 | 145 | | |
147 | 146 | | |
| |||
179 | 178 | | |
180 | 179 | | |
181 | 180 | | |
182 | | - | |
| 181 | + | |
183 | 182 | | |
184 | 183 | | |
185 | 184 | | |
| |||
0 commit comments