Skip to content

Commit

Permalink
fix: use specific poetry version (#123)
Browse files Browse the repository at this point in the history
**Issue #, if available:** N/A

## Description of changes:

By specifying the exact poetry version we prevent local vs remote
differences.

**Checklist**

<!--- Leave unchecked if your change doesn't seem to apply -->

* [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.
  • Loading branch information
Joris Conijn authored Mar 6, 2023
1 parent 140f4a9 commit 89936d2
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 4 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 89936d2

Please sign in to comment.