From ecedc08d3d9ca5c5ab91f06e879b7da4e4a1ba01 Mon Sep 17 00:00:00 2001 From: niuyazhe Date: Wed, 8 May 2024 17:11:39 +0800 Subject: [PATCH] polish(nyz): polish ci python version --- .github/workflows/algo_test.yml | 6 +++--- .github/workflows/envpool_test.yml | 6 +++--- .github/workflows/platform_test.yml | 6 ++++-- .github/workflows/release.yml | 6 +++--- .github/workflows/release_conda.yml | 2 +- .github/workflows/unit_test.yml | 8 ++++---- 6 files changed, 18 insertions(+), 16 deletions(-) diff --git a/.github/workflows/algo_test.yml b/.github/workflows/algo_test.yml index 02f46cd9a1..dbd5a95549 100644 --- a/.github/workflows/algo_test.yml +++ b/.github/workflows/algo_test.yml @@ -16,12 +16,12 @@ 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] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: do_algotest diff --git a/.github/workflows/envpool_test.yml b/.github/workflows/envpool_test.yml index e14a4848a0..7d1e01aa8d 100644 --- a/.github/workflows/envpool_test.yml +++ b/.github/workflows/envpool_test.yml @@ -11,12 +11,12 @@ jobs: if: "!contains(github.event.head_commit.message, 'ci skip')" strategy: matrix: - python-version: [3.7, 3.8] # Envpool only supports python>=3.7 + python-version: [3.8] # Envpool only supports python>=3.7 steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: do_envpool_test diff --git a/.github/workflows/platform_test.yml b/.github/workflows/platform_test.yml index 181f20c681..b3e92c175c 100644 --- a/.github/workflows/platform_test.yml +++ b/.github/workflows/platform_test.yml @@ -15,9 +15,11 @@ jobs: python-version: [3.8, 3.9] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} - name: do_platform_test timeout-minutes: 30 run: | diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a21ea8bf14..4305e215d2 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -11,13 +11,13 @@ jobs: matrix: os: - ubuntu-latest - python-version: [3.7] + python-version: [3.8] steps: - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Set up python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: Set up python dependences diff --git a/.github/workflows/release_conda.yml b/.github/workflows/release_conda.yml index 2c4fe83191..10fff557ea 100644 --- a/.github/workflows/release_conda.yml +++ b/.github/workflows/release_conda.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest if: github.event_name == 'push' && (startsWith(github.ref, 'refs/tags') || contains(github.event.head_commit.message, 'conda')) steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: publish-to-conda uses: fcakyon/conda-publish-action@v1.3 with: diff --git a/.github/workflows/unit_test.yml b/.github/workflows/unit_test.yml index ef9038610c..88144624f8 100644 --- a/.github/workflows/unit_test.yml +++ b/.github/workflows/unit_test.yml @@ -14,9 +14,9 @@ jobs: python-version: [3.7, 3.8, 3.9] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: do_unittest @@ -50,9 +50,9 @@ jobs: python-version: [3.7, 3.8, 3.9] steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - name: do_benchmark