From 113021cdf42d3b1eb4b6be3395aa9d118fac406c Mon Sep 17 00:00:00 2001 From: StarHeart Date: Fri, 4 Nov 2022 09:29:13 +0800 Subject: [PATCH] =?UTF-8?q?:construction=5Fworker:=20CI:=20=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E7=8E=AF=E5=A2=83=E6=B7=BB=E5=8A=A0=20Python=203.11?= =?UTF-8?q?=20(#1366)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: yanyongyu <42488585+yanyongyu@users.noreply.github.com> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> --- .github/actions/setup-node/action.yml | 4 ++-- .github/actions/setup-python/action.yml | 19 ++++++------------- .github/workflows/codecov.yml | 2 +- 3 files changed, 9 insertions(+), 16 deletions(-) diff --git a/.github/actions/setup-node/action.yml b/.github/actions/setup-node/action.yml index 2373417b..0061a3a4 100644 --- a/.github/actions/setup-node/action.yml +++ b/.github/actions/setup-node/action.yml @@ -9,10 +9,10 @@ runs: node-version: "16" - id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn cache dir)" + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT shell: bash - - uses: actions/cache@v2 + - uses: actions/cache@v3 with: path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} diff --git a/.github/actions/setup-python/action.yml b/.github/actions/setup-python/action.yml index 35d70382..9f987073 100644 --- a/.github/actions/setup-python/action.yml +++ b/.github/actions/setup-python/action.yml @@ -10,22 +10,15 @@ inputs: runs: using: "composite" steps: - - id: python - uses: actions/setup-python@v2 + - name: Install poetry + run: pipx install poetry + shell: bash + + - uses: actions/setup-python@v4 with: python-version: ${{ inputs.python-version }} architecture: "x64" - - - uses: Gr1N/setup-poetry@v7 - - - id: poetry-cache - run: echo "::set-output name=dir::$(poetry config virtualenvs.path)" - shell: bash - - - uses: actions/cache@v2 - with: - path: ${{ steps.poetry-cache.outputs.dir }} - key: ${{ runner.os }}-poetry-${{ steps.python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }} + cache: "poetry" - run: poetry install -E all shell: bash diff --git a/.github/workflows/codecov.yml b/.github/workflows/codecov.yml index 3f0b2915..46e1ce12 100644 --- a/.github/workflows/codecov.yml +++ b/.github/workflows/codecov.yml @@ -15,7 +15,7 @@ jobs: cancel-in-progress: true strategy: matrix: - python-version: ["3.8", "3.9", "3.10"] + python-version: ["3.8", "3.9", "3.10", "3.11"] os: [ubuntu-latest, windows-latest, macos-latest] fail-fast: false env: