Skip to content

Commit 4b486b0

Browse files
Revert "Remove all caching that could explain the problem"
This reverts commit 7e6684b.
1 parent a469d1b commit 4b486b0

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/main.yml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ jobs:
1313
- uses: actions/checkout@v4
1414
- name: Set up Python
1515
uses: actions/setup-python@v5
16+
with:
17+
cache: "pip"
1618
- name: Install pypa/build
1719
run: >-
1820
python3 -m pip install --user --upgrade build twine pkginfo poetry
@@ -72,7 +74,15 @@ jobs:
7274
run: |
7375
python -m poetry config virtualenvs.in-project true
7476
77+
- name: Cache the virtualenv
78+
id: poetry-dependencies-cache
79+
uses: actions/cache@v3
80+
with:
81+
path: ./.venv
82+
key: ${{ runner.os }}-venv-${{ steps.setup-python.outputs.python-version }}-${{ hashFiles('**/poetry.lock') }}
83+
7584
- name: Install dev dependencies
85+
if: steps.poetry-dependencies-cache.outputs.cache-hit != 'true'
7686
run: |
7787
python -m poetry install --only=dev
7888

0 commit comments

Comments
 (0)