From 89936d2d9b1541681c6d8194b1549f1dcb04b8f7 Mon Sep 17 00:00:00 2001 From: Joris Conijn Date: Mon, 6 Mar 2023 09:58:51 +0100 Subject: [PATCH] fix: use specific poetry version (#123) **Issue #, if available:** N/A ## Description of changes: By specifying the exact poetry version we prevent local vs remote differences. **Checklist** * [x] Update tests * [x] Update docs * [x] PR title follows [conventional commit semantics](https://www.conventionalcommits.org/en/v1.0.0-beta.2/#commit-message-for-a-fix-using-an-optional-issue-number) By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/release.yml | 10 ++++++++-- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 5aa5c5b..9459c7e 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,8 +22,14 @@ jobs: - uses: actions/setup-python@v2 with: python-version: ${{ matrix.python-version }} - - name: Run image - uses: abatilo/actions-poetry@v2.2.0 + - uses: Gr1N/setup-poetry@v8 + with: + poetry-version: "1.4.0" + - uses: actions/cache@v2 + with: + path: ~/.cache/pypoetry/virtualenvs + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + - run: poetry --version - name: Install dependencies run: make install - name: Run check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b2aaeab..6bf8676 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,8 +19,14 @@ jobs: id: vars run: | echo ::set-output name=version::$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g') - - name: Install poetry - uses: abatilo/actions-poetry@v2.1.3 + - uses: Gr1N/setup-poetry@v8 + with: + poetry-version: "1.4.0" + - uses: actions/cache@v2 + with: + path: ~/.cache/pypoetry/virtualenvs + key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} + - run: poetry --version - name: Install dependencies run: make install - name: Run check