Pārlūkot izejas kodu

ci: faster patch test (#17386)

* ci: slightly faster patch test

This workflow doesn't seem to properly cache built versions :)

* ci: bump pyenv action to latest version

latest version has fix for tool cache


[skip ci]
version-14
Ankush Menat pirms 2 gadiem
committed by GitHub
vecāks
revīzija
234c8beed6
Šim parakstam datu bāzē netika atrasta zināma atslēga GPG atslēgas ID: 4AEE18F83AFDEB23
1 mainītis faili ar 3 papildinājumiem un 7 dzēšanām
  1. +3
    -7
      .github/workflows/patch-mariadb-tests.yml

+ 3
- 7
.github/workflows/patch-mariadb-tests.yml Parādīt failu

@@ -31,9 +31,9 @@ jobs:
uses: actions/checkout@v3 uses: actions/checkout@v3


- name: Setup Python - name: Setup Python
uses: "gabrielfalcao/pyenv-action@v9"
uses: "gabrielfalcao/pyenv-action@v10"
with: with:
versions: 3.10:latest, 3.7:latest, 2.7:latest
versions: 3.10:latest, 3.7:latest


- name: Setup Node - name: Setup Node
uses: actions/setup-node@v3 uses: actions/setup-node@v3
@@ -120,14 +120,10 @@ jobs:
cd apps/frappe/ cd apps/frappe/
git remote set-url upstream https://github.com/frappe/frappe.git git remote set-url upstream https://github.com/frappe/frappe.git


pyenv global $(pyenv versions | grep '3.7')
for version in $(seq 12 13) for version in $(seq 12 13)
do do
echo "Updating to v$version" echo "Updating to v$version"
if [ $version == 12 ]; then
pyenv global $(pyenv versions | grep '2.7')
elif [ $version == 13 ]; then
pyenv global $(pyenv versions | grep '3.7')
fi
branch_name="version-$version-hotfix" branch_name="version-$version-hotfix"
git fetch --depth 1 upstream $branch_name:$branch_name git fetch --depth 1 upstream $branch_name:$branch_name
git checkout -q -f $branch_name git checkout -q -f $branch_name


Notiek ielāde…
Atcelt
Saglabāt