Browse Source

ci: Fetch pyenv installed specific version

version-14
Gavin D'souza 2 years ago
parent
commit
4451773daa
1 changed files with 4 additions and 4 deletions
  1. +4
    -4
      .github/workflows/patch-mariadb-tests.yml

+ 4
- 4
.github/workflows/patch-mariadb-tests.yml View File

@@ -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…
Cancel
Save