瀏覽代碼

ci: check build requirement before setting up python

[skip ci]
version-14
Ankush Menat 2 年之前
父節點
當前提交
c200f5b3ae
共有 1 個檔案被更改,包括 11 行新增9 行删除
  1. +11
    -9
      .github/workflows/patch-mariadb-tests.yml

+ 11
- 9
.github/workflows/patch-mariadb-tests.yml 查看文件

@@ -30,26 +30,28 @@ jobs:
- name: Clone
uses: actions/checkout@v3

- name: Check if build should be run
id: check-build
run: |
python "${GITHUB_WORKSPACE}/.github/helper/roulette.py"
env:
TYPE: "server"
PR_NUMBER: ${{ github.event.number }}
REPO_NAME: ${{ github.repository }}

- name: Setup Python
if: ${{ steps.check-build.outputs.build == 'strawberry' }}
uses: "gabrielfalcao/pyenv-action@v10"
with:
versions: 3.10:latest, 3.7:latest

- name: Setup Node
if: ${{ steps.check-build.outputs.build == 'strawberry' }}
uses: actions/setup-node@v3
with:
node-version: 14
check-latest: true

- name: Check if build should be run
id: check-build
run: |
python "${GITHUB_WORKSPACE}/.github/helper/roulette.py"
env:
TYPE: "server"
PR_NUMBER: ${{ github.event.number }}
REPO_NAME: ${{ github.repository }}

- name: Add to Hosts
if: ${{ steps.check-build.outputs.build == 'strawberry' }}
run: echo "127.0.0.1 test_site" | sudo tee -a /etc/hosts


Loading…
取消
儲存