Skip to content

Commit 03d9b42

Browse files
authored
Merge pull request #48 from Nr18/develop
fix: use a explicit poetry version
2 parents 1f80251 + 95b46a7 commit 03d9b42

File tree

2 files changed

+21
-5
lines changed

2 files changed

+21
-5
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,18 @@ jobs:
2222
- uses: actions/setup-python@v2
2323
with:
2424
python-version: ${{ matrix.python-version }}
25-
- name: Run image
26-
uses: abatilo/actions-poetry@v2.2.0
25+
- uses: Gr1N/setup-poetry@v8
26+
with:
27+
poetry-version: "1.4.0"
28+
- uses: actions/cache@v2
29+
with:
30+
path: ~/.cache/pypoetry/virtualenvs
31+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
32+
- run: poetry --version
33+
- name: Prepare variables
34+
id: vars
35+
run: |
36+
echo "version=$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT
2737
- name: Install dependencies
2838
run: make install
2939
- name: Run check

.github/workflows/release.yml

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,18 @@ jobs:
1515
uses: actions/setup-python@v2
1616
with:
1717
python-version: 3.9
18+
- uses: Gr1N/setup-poetry@v8
19+
with:
20+
poetry-version: "1.4.0"
21+
- uses: actions/cache@v2
22+
with:
23+
path: ~/.cache/pypoetry/virtualenvs
24+
key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }}
25+
- run: poetry --version
1826
- name: Prepare variables
1927
id: vars
2028
run: |
21-
echo ::set-output name=version::$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')
22-
- name: Install poetry
23-
uses: abatilo/actions-poetry@v2.1.3
29+
echo "version=$(awk '/version/{print $NF}' pyproject.toml | sed 's/\"//g')" >> $GITHUB_OUTPUT
2430
- name: Install dependencies
2531
run: make install
2632
- name: Run check

0 commit comments

Comments
 (0)