kopia lustrzana https://github.com/wagtail/wagtail
Attempt to fix CircleCI pipenv cache issues
rodzic
9933432ec7
commit
a199096af3
|
@ -9,14 +9,14 @@ jobs:
|
||||||
steps:
|
steps:
|
||||||
- checkout
|
- checkout
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: pipenv-v2-{{ checksum "setup.py" }}
|
key: pipenv-v3-{{ checksum "setup.py" }}
|
||||||
# Only install if .venv wasn’t cached.
|
# Only install if .venv wasn’t cached.
|
||||||
- run: |
|
- run: |
|
||||||
if [[ ! -e ".venv" ]]; then
|
if [[ ! -e ".venv" ]]; then
|
||||||
pipenv install -e .[testing,docs]
|
pipenv install -e .[testing,docs]
|
||||||
fi
|
fi
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: pipenv-v2-{{ checksum "setup.py" }}
|
key: pipenv-v3-{{ checksum "setup.py" }}
|
||||||
paths:
|
paths:
|
||||||
- .venv
|
- .venv
|
||||||
- run: pipenv run ruff check .
|
- run: pipenv run ruff check .
|
||||||
|
@ -72,25 +72,25 @@ jobs:
|
||||||
- attach_workspace:
|
- attach_workspace:
|
||||||
at: ~/project
|
at: ~/project
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: pipenv-v2-{{ checksum "setup.py" }}
|
key: ui_tests-pipenv-v3-{{ checksum "setup.py" }}
|
||||||
# Only install if .venv wasn’t cached.
|
# Only install if .venv wasn’t cached.
|
||||||
- run: |
|
- run: |
|
||||||
if [[ ! -e ".venv" ]]; then
|
if [[ ! -e ".venv" ]]; then
|
||||||
pipenv install -e .[testing]
|
pipenv install -e .[testing]
|
||||||
fi
|
fi
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: pipenv-v2-{{ checksum "setup.py" }}
|
key: ui_tests-pipenv-v3-{{ checksum "setup.py" }}
|
||||||
paths:
|
paths:
|
||||||
- .venv
|
- .venv
|
||||||
- restore_cache:
|
- restore_cache:
|
||||||
key: ui_tests-npm_integration-v2-{{ checksum "client/tests/integration/package-lock.json" }}
|
key: ui_tests-npm_integration-v3-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||||
# Only install if node_modules wasn’t cached.
|
# Only install if node_modules wasn’t cached.
|
||||||
- run: |
|
- run: |
|
||||||
if [[ ! -e "client/tests/integration/node_modules" ]]; then
|
if [[ ! -e "client/tests/integration/node_modules" ]]; then
|
||||||
npm --prefix ./client/tests/integration ci
|
npm --prefix ./client/tests/integration ci
|
||||||
fi
|
fi
|
||||||
- save_cache:
|
- save_cache:
|
||||||
key: ui_tests-npm_integration-v2-{{ checksum "client/tests/integration/package-lock.json" }}
|
key: ui_tests-npm_integration-v3-{{ checksum "client/tests/integration/package-lock.json" }}
|
||||||
paths:
|
paths:
|
||||||
- client/tests/integration/node_modules
|
- client/tests/integration/node_modules
|
||||||
# Also cache the global location where Puppeteer stores browsers.
|
# Also cache the global location where Puppeteer stores browsers.
|
||||||
|
|
Ładowanie…
Reference in New Issue