ci: Fetch pyenv installed specific version
This commit is contained in:
parent
f16a24a777
commit
4451773daa
1 changed files with 4 additions and 4 deletions
8
.github/workflows/patch-mariadb-tests.yml
vendored
8
.github/workflows/patch-mariadb-tests.yml
vendored
|
|
@ -102,7 +102,7 @@ jobs:
|
|||
- name: Install
|
||||
if: ${{ steps.check-build.outputs.build == 'strawberry' }}
|
||||
run: |
|
||||
pyenv local 3.10
|
||||
pyenv global $(pyenv versions | grep '3.10')
|
||||
bash ${GITHUB_WORKSPACE}/.github/helper/install.sh
|
||||
env:
|
||||
DB: mariadb
|
||||
|
|
@ -123,9 +123,9 @@ jobs:
|
|||
do
|
||||
echo "Updating to v$version"
|
||||
if [ $version == 12 ]; then
|
||||
pyenv local 2.7
|
||||
pyenv global $(pyenv versions | grep '2.7')
|
||||
elif [ $version == 13 ]; then
|
||||
pyenv local 3.7
|
||||
pyenv global $(pyenv versions | grep '3.7')
|
||||
fi
|
||||
branch_name="version-$version-hotfix"
|
||||
git fetch --depth 1 upstream $branch_name:$branch_name
|
||||
|
|
@ -138,7 +138,7 @@ jobs:
|
|||
|
||||
echo "Updating to last commit"
|
||||
git checkout -q -f "$GITHUB_SHA"
|
||||
pyenv local 3.10
|
||||
pyenv global $(pyenv versions | grep '3.10')
|
||||
rm -rf ~/frappe-bench/env
|
||||
bench setup env
|
||||
bench --site test_site migrate
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue