Hi team,
I’m trying to automate my GitHub Actions → QuantConnect Cloud deployment but every workflow attempt fails with one of:
- Cannot push : Project name contains unsupported special character (.)
- Invalid value for –project: Directory does not exist
Local setup:
- macOS Sonoma (M1)
- Python 3.12, Lean CLI 1.0.221
- Local push works perfectly with:
- lean cloud push --project project_name`
GitHub Actions:
- Ubuntu runner, Python 3.12.12
- .lean/project.json created dynamically with correct IDs
- Secrets: ORG_ID, PROJECT_ID, PROJECT_NAME, USER_ID, API_TOKEN
- Login succeeds, API calls succeed — only the cloud push step fails.
Questions:
- How should the runner directory / project folder be structured for lean cloud push to work?
- Does the CLI support non-interactive CI pushes?
- Must .lean/project.json reside inside the project folder?
- Can the .rename behavior be disabled for CI?
Would appreciate direct technical guidance — I’ve tested 10 variants and verified it works locally but not in GitHub Actions.
Rajiv Kumar
The material on this website is provided for informational purposes only and does not constitute an offer to sell, a solicitation to buy, or a recommendation or endorsement for any security or strategy, nor does it constitute an offer to provide investment advisory services by QuantConnect. In addition, the material offers no opinion with respect to the suitability of any security or specific investment. QuantConnect makes no guarantees as to the accuracy or completeness of the views expressed in the website. The views are subject to change, and may have become unreliable for various reasons, including changes in market conditions or economic circumstances. All investments involve risk, including loss of principal. You should consult with an investment professional before making any investment decisions.
To unlock posting to the community forums please complete at least 30% of Boot Camp.
You can continue your Boot Camp training progress from the terminal. We hope to see you in the community soon!