File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change @@ -571,6 +571,24 @@ jobs:
571
571
poetry export --without-hashes --with dev -o requirements_dev.txt
572
572
cat requirements_dev.txt
573
573
fi
574
+ - name : Setup UCC
575
+ run : |
576
+ if [ -f "requirements_ucc.txt" ]; then
577
+ python${{ env.PYTHON_VERSION }} -m venv .ucc_venv
578
+ echo "Found requirements_ucc.txt. Installing UCC dependencies in an isolated environment"
579
+ ./.ucc_venv/bin/python -m pip install -r requirements_ucc.txt
580
+ export UCC_GEN="$PWD/.ucc_venv/bin/ucc-gen"
581
+
582
+ if [ ! -f "$UCC_GEN" ]; then
583
+ echo "ucc-gen not found after installing requirements from requirements_ucc.txt"
584
+ exit 1
585
+ fi
586
+
587
+ echo "UCC_GEN=$UCC_GEN" >> "$GITHUB_ENV"
588
+ else
589
+ echo "No UCC requirements file found, skipping UCC setup"
590
+ echo "Consider adding a requirements_ucc.txt file and place UCC requirement there, to avoid dependency conflicts"
591
+ fi
574
592
- name : Get pip cache dir
575
593
id : pip-cache
576
594
run : |
@@ -650,7 +668,7 @@ jobs:
650
668
- name : Build Package
651
669
id : uccgen
652
670
run : |
653
- ucc-gen --ta-version ${{ steps.BuildVersion.outputs.VERSION }}
671
+ "${UCC_GEN:- ucc-gen}" build --ta-version ${{ steps.BuildVersion.outputs.VERSION }}
654
672
if [ -f package.json ]
655
673
then
656
674
yarn
You can’t perform that action at this time.
0 commit comments