From f30176a76534d3a225fc9c2dbec7f245b2cbe586 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Tue, 28 Jul 2020 07:31:11 -0400 Subject: [PATCH] only create venv if cache misses --- .github/workflows/test.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 2ccb0e8a..528b138d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -59,9 +59,12 @@ jobs: restore-keys: | ${{ runner.os }}-${{ matrix.python }}-venv- - - name: Install dependencies + - name: Create virtualenv run: | python3 -m venv .venv + if: steps.cache-venv.outputs.cache-hit != 'true' + + - name: Install dependencies source .venv/bin/activate python -m pip install . python -m pip install pytest bottle