From 02d909ee418de5f33a0272a0721d473a7c3de2c3 Mon Sep 17 00:00:00 2001 From: Chi-Sheng Liu Date: Tue, 24 Oct 2023 17:42:13 +0800 Subject: [PATCH] ci(github-actions): Update python version in GitHub actions --- .github/workflows/lint.yml | 8 +++++--- .github/workflows/ut.yml | 8 ++++---- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 162d624..c16d7e2 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,15 +1,17 @@ name: lint -on: [pull_request] +on: [ pull_request ] jobs: pre-commit: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 1024 - - uses: actions/setup-python@v2 + - uses: actions/setup-python@v4 + with: + python-version: '3.8' - name: pre-commit env: BASE_SHA: ${{ github.event.pull_request.base.sha}} diff --git a/.github/workflows/ut.yml b/.github/workflows/ut.yml index 7891759..81138a3 100644 --- a/.github/workflows/ut.yml +++ b/.github/workflows/ut.yml @@ -1,16 +1,16 @@ name: Run Unit Test -on: [pull_request] +on: [ pull_request ] jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-python@v2 + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 with: - python-version: "3.6.8" + python-version: '3.8' - name: Install dependencies run: | pip install pip --upgrade