1
0
Fork 0

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 }} python-version: ${{ matrix.python }}
architecture: x64 architecture: x64
- name: Cache virtualenv - name: Cache pip
uses: actions/cache@v2 uses: actions/cache@v2
id: cache-venv id: cache-pip
with: with:
path: .venv path: ~/.cache/pip
key: ${{ runner.os }}-${{ matrix.python }}-venv-${{ hashFiles('setup.py') }} key: ${{ runner.os }}-${{ matrix.python }}-venv-${{ hashFiles('setup.py') }}
restore-keys: | restore-keys: |
${{ runner.os }}-${{ matrix.python }}-venv- ${{ runner.os }}-${{ matrix.python }}-venv-
- name: Create virtualenv - name: Create virtualenv
if: steps.cache-venv.outputs.cache-hit != 'true'
run: | run: |
python3 -m venv .venv python3 -m venv .venv
source .venv/bin/activate 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-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; } 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 - name: Start docker-compose stack
run: | run: |
docker-compose run archivebox init docker-compose run archivebox init