Skip to content

Commit bef775e

Browse files
committed
Poetry should use existing venv
1 parent b34b161 commit bef775e

File tree

2 files changed

+4
-17
lines changed

2 files changed

+4
-17
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,12 @@ jobs:
3636
virtualenvs-create: true
3737
virtualenvs-in-project: true
3838

39-
- name: Load cached venv
40-
id: cached-poetry-dependencies
41-
uses: actions/cache@v4
42-
with:
43-
path: .venv
44-
key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }}
39+
- name: Load existing venv
40+
run: poetry env use /opt/venv/bin/python
4541

4642
- name: Install dependencies
47-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4843
run: poetry install --no-root --only main,test
4944

50-
- name: Install stormpy manually
51-
run: poetry run pip install /opt/stormpy
52-
5345
- name: Install pre-commit
5446
run: pip install pre-commit==${{ env.PRECOMMIT_VERSION }}
5547

.github/workflows/test.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,10 @@ jobs:
3636
virtualenvs-create: true
3737
virtualenvs-in-project: true
3838

39-
- name: Load cached venv
40-
id: cached-poetry-dependencies
41-
uses: actions/cache@v4
42-
with:
43-
path: .venv
44-
key: venv-${{ runner.os }}-v1-${{ hashFiles('**/poetry.lock') }}
39+
- name: Load existing venv
40+
run: poetry env use /opt/venv/bin/python
4541

4642
- name: Install dependencies
47-
if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
4843
run: poetry install --no-root --only main,test
4944

5045
- name: Install stormpy manually

0 commit comments

Comments
 (0)