Skip to content

Commit 1a89ceb

Browse files
committed
fix: add constraints.txt to deploy pip install
1 parent 57cd653 commit 1a89ceb

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/sync-cloud-run-env.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -342,7 +342,10 @@ jobs:
342342
run: |
343343
set -euo pipefail
344344
python -m pip install --upgrade pip
345-
python -m pip install -r requirements.txt
345+
grep -vE "^\s*(#|$)|git\+" requirements.txt | xargs -r python -m pip install -c https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/constraints.txt
346+
grep 'git+' requirements.txt | while IFS= read -r pkg; do
347+
[ -n "$pkg" ] && python -m pip install --no-deps "$pkg" -c https://raw.githubusercontent.com/QuantStrategyLab/QuantPlatformKit/main/constraints.txt
348+
done
346349
347350
- name: Resolve Cloud Run sync targets
348351
id: strategy_requirements

0 commit comments

Comments
 (0)