mirror of
https://github.com/ArchiveBox/ArchiveBox.git
synced 2025-05-13 06:34:25 -04:00
only create venv if cache misses
This commit is contained in:
parent
43ed722a8d
commit
f30176a765
1 changed files with 4 additions and 1 deletions
5
.github/workflows/test.yml
vendored
5
.github/workflows/test.yml
vendored
|
@ -59,9 +59,12 @@ jobs:
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-${{ matrix.python }}-venv-
|
${{ runner.os }}-${{ matrix.python }}-venv-
|
||||||
|
|
||||||
- name: Install dependencies
|
- name: Create virtualenv
|
||||||
run: |
|
run: |
|
||||||
python3 -m venv .venv
|
python3 -m venv .venv
|
||||||
|
if: steps.cache-venv.outputs.cache-hit != 'true'
|
||||||
|
|
||||||
|
- name: Install dependencies
|
||||||
source .venv/bin/activate
|
source .venv/bin/activate
|
||||||
python -m pip install .
|
python -m pip install .
|
||||||
python -m pip install pytest bottle
|
python -m pip install pytest bottle
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue