Skip to content

Commit 02c2708

Browse files
committed
test: cache
1 parent 1803016 commit 02c2708

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
matrix:
1111
os: [ubuntu-latest]
1212
python-version: ['3.8', '3.9', '3.10']
13+
env:
14+
PIPENV_VENV_IN_PROJECT: "enabled"
1315

1416
steps:
1517
- uses: actions/checkout@v2
@@ -23,23 +25,25 @@ jobs:
2325
run: python3 -m pip install --upgrade pipenv
2426

2527
# create .venv folder
26-
- name: create .venv folder
27-
run: mkdir -p .venv
28+
# - name: create .venv folder
29+
# run: mkdir -p .venv
2830

2931
# caching dependencies
3032
- name: Caching Dependencies
3133
uses: actions/cache@v2
3234
id: cache-dependencies
3335
with:
3436
path: ./.venv
35-
key: ${{matrix.os}}-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
37+
key: ${{ matrix.os }}-${{ matrix.python-version }}-pipenv-${{ hashFiles('**/Pipfile.lock') }}
3638
restore-keys: |
3739
${{ matrix.os }}-pipenv
3840
3941
# install dependencies
4042
- name: Install dependencies
4143
if: steps.cache-dependencies.outputs.cache-hit != 'true'
42-
run: pipenv install --dev --verbose
44+
run: |
45+
touch Pipfile
46+
pipenv install --dev --verbose
4347
4448
# Run tests
4549
# - name: Test

0 commit comments

Comments
 (0)