From 2317aaa416d0d5e4e8ed41c898e823ccc2c8c3bc Mon Sep 17 00:00:00 2001 From: narumi Date: Wed, 26 Jun 2024 21:41:10 +0800 Subject: [PATCH] use setup-poetry action --- .github/workflows/publish.yml | 10 +++++----- .github/workflows/python.yml | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 7818052..510e1f7 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,11 +19,11 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Install poetry - run: | - pip install pipx - pipx install poetry==${{ matrix.poetry-version }} - poetry env info + cache: pip + - uses: narumiruna/setup-poetry@v1 + with: + poetry-version: ${{ matrix.poetry-version }} + cache: true - name: Publish env: POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }} diff --git a/.github/workflows/python.yml b/.github/workflows/python.yml index bb33da5..3d06ce3 100644 --- a/.github/workflows/python.yml +++ b/.github/workflows/python.yml @@ -22,11 +22,11 @@ jobs: - uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} - - name: Install poetry - run: | - pip install pipx - pipx install poetry==${{ matrix.poetry-version }} - poetry env info + cache: pip + - uses: narumiruna/setup-poetry@v1 + with: + poetry-version: ${{ matrix.poetry-version }} + cache: true - name: Install dependencies run: poetry install - name: Lint