Skip to content

Commit 5163ba7

Browse files
committed
Clean up poetry install for coverage.
1 parent 9576581 commit 5163ba7

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

.github/workflows/coverage.yml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Coverage
2+
23
on:
34
push:
45
branches:
56
- main
67
workflow_dispatch:
78

9+
env:
10+
PYTHON_VERSION: 3.11
11+
812
jobs:
913
generate-coverage:
1014
runs-on: ubuntu-latest
@@ -14,19 +18,16 @@ jobs:
1418
with:
1519
fetch-depth: 1
1620

17-
- name: Set up Python 3.11
18-
uses: actions/[email protected]
19-
with:
20-
python-version: "3.11"
21-
2221
- name: Install Poetry
23-
uses: abatilo/[email protected]
24-
with:
25-
poetry-version: 1.6.1
26-
27-
- name: Set Poetry config
2822
run: |
29-
poetry config virtualenvs.path ~/.virtualenvs3.11
23+
pipx install poetry
24+
poetry config virtualenvs.path ~/.virtualenvs${{ env.PYTHON_VERSION }}
25+
26+
- name: Set up Python ${{ env.PYTHON_VERSION }}
27+
uses: actions/setup-python@v3
28+
with:
29+
python-version: ${{ env.PYTHON_VERSION }}
30+
cache: "poetry"
3031

3132
- name: Install dependencies
3233
run: poetry install -E minify

0 commit comments

Comments
 (0)