Skip to content

Commit 886f0fb

Browse files
authored
fix: configure poetry in github action (#71)
1 parent ebb987f commit 886f0fb

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/ci.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,20 @@ jobs:
9494
id: rename_project
9595
run: make rename_project
9696

97+
- name: Install poetry
98+
uses: abatilo/actions-poetry@v2
99+
- name: Setup a local virtual environment (if no poetry.toml file)
100+
run: |
101+
poetry config virtualenvs.create true --local
102+
poetry config virtualenvs.in-project true --local
103+
- uses: actions/cache@v3
104+
name: Define a cache for the virtual environment based on the dependencies lock file
105+
with:
106+
path: ./.venv
107+
key: venv-${{ hashFiles('poetry.lock') }}
108+
- name: Install the project dependencies
109+
run: poetry install
110+
97111
- name: Build package distribution directory
98112
id: build_dist
99113
run: make build_package

0 commit comments

Comments
 (0)