1
0
Fork 0
mirror of synced 2024-06-02 18:44:59 +12:00

fix: Use pip cache instead of venv folder

This commit is contained in:
Cristian 2020-07-31 11:06:20 -05:00
parent 5707ffe657
commit 206ade7d7c

View file

@ -51,17 +51,16 @@ jobs:
python-version: ${{ matrix.python }}
architecture: x64
- name: Cache virtualenv
- name: Cache pip
uses: actions/cache@v2
id: cache-venv
id: cache-pip
with:
path: .venv
path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python }}-venv-${{ hashFiles('setup.py') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-venv-
- name: Create virtualenv
if: steps.cache-venv.outputs.cache-hit != 'true'
run: |
python3 -m venv .venv
source .venv/bin/activate
@ -115,7 +114,6 @@ jobs:
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-1.local" || { echo "The site 1 isn't in the list"; exit 1; }
docker run -v "$PWD"/data:/data archivebox list | grep -q "www.test-nginx-2.local" || { echo "The site 2 isn't in the list"; exit 1; }
- name: Start docker-compose stack
run: |
docker-compose run archivebox init