Skip to content

Commit 46135d0

Browse files
committed
fix stale python version issue
1 parent 7421e3d commit 46135d0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/actions/config-poetry/config-poetry.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ set_build_env() {
1515
config_poetry() {
1616
jf config add repox --artifactory-url "$ARTIFACTORY_URL" --access-token "$ARTIFACTORY_ACCESS_TOKEN"
1717
jf poetry-config --server-id-resolve repox --repo-resolve "$ARTIFACTORY_PYPI_REPO"
18+
# force poetry to use python available in the environment to avoid cached .venv to point to old python version
19+
jf poetry env use python --build-name="$PROJECT" --build-number="$BUILD_NUMBER"
1820
jf poetry install --build-name="$PROJECT" --build-number="$BUILD_NUMBER"
1921
}
2022

0 commit comments

Comments
 (0)