From bf258f889280fa57c39dd75a05a408c7af00ab3a Mon Sep 17 00:00:00 2001 From: PaParaZz1 Date: Fri, 24 Jan 2025 11:15:06 +0800 Subject: [PATCH] test(nyz): upgrade python version and setup-python version --- .github/workflows/badge.yml | 4 ++-- .github/workflows/doc.yml | 2 +- .github/workflows/style.yml | 4 ++-- .github/workflows/unit_test.yml | 4 ++-- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/badge.yml b/.github/workflows/badge.yml index f82cf24fdf..d010d21bf8 100644 --- a/.github/workflows/badge.yml +++ b/.github/workflows/badge.yml @@ -12,13 +12,13 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [ 3.7 ] + python-version: [ 3.8 ] env: GIST_ID: 3690cccd811e4c5f771075c2f785c7bb steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Download cloc diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 9465203300..0dc0235c70 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -17,7 +17,7 @@ jobs: steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Generate diff --git a/.github/workflows/style.yml b/.github/workflows/style.yml index be7bb6e890..1ed80baa8e 100644 --- a/.github/workflows/style.yml +++ b/.github/workflows/style.yml @@ -10,12 +10,12 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v2 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: code style diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index 8acfaf57ec..7bb14a2350 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -11,7 +11,7 @@ jobs: if: ( !contains(github.event.head_commit.message, 'ci skip') && !contains(github.event.head_commit.message, 'ut skip')) strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v4 @@ -42,7 +42,7 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip')" strategy: matrix: - python-version: [3.7, 3.8, 3.9] + python-version: ['3.8', '3.9', '3.10'] steps: - uses: actions/checkout@v4