|
|
@ -23,8 +23,8 @@ jobs: |
|
|
# Download and cache dependencies |
|
|
# Download and cache dependencies |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
keys: |
|
|
keys: |
|
|
- v1-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
- v1-dependencies- |
|
|
|
|
|
|
|
|
- v2-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
- v2-dependencies- |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
|
|
|
|
- run: |
|
|
- run: |
|
|
@ -41,7 +41,7 @@ jobs: |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
paths: |
|
|
paths: |
|
|
- venv |
|
|
- venv |
|
|
key: v1-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
|
|
|
key: v2-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -67,16 +67,15 @@ jobs: |
|
|
# Download and cache dependencies |
|
|
# Download and cache dependencies |
|
|
- restore_cache: |
|
|
- restore_cache: |
|
|
keys: |
|
|
keys: |
|
|
- v1-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
- v1-dependencies- |
|
|
|
|
|
|
|
|
- v2-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
- v2-dependencies- |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
# fallback to using the latest cache if no exact match is found |
|
|
|
|
|
|
|
|
- run: |
|
|
- run: |
|
|
name: db init & migrate |
|
|
|
|
|
|
|
|
name: db & migrate |
|
|
command: | |
|
|
command: | |
|
|
. venv/bin/activate |
|
|
. venv/bin/activate |
|
|
sleep 1 |
|
|
sleep 1 |
|
|
flask db init |
|
|
|
|
|
flask db migrate |
|
|
flask db migrate |
|
|
environment: |
|
|
environment: |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
CONDUIT_SECRET: 'something-really-secret' |
|
|
@ -108,7 +107,7 @@ jobs: |
|
|
- save_cache: |
|
|
- save_cache: |
|
|
paths: |
|
|
paths: |
|
|
- venv |
|
|
- venv |
|
|
key: v1-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
|
|
|
|
|
|
key: v2-dependencies-{{ checksum "requirements/dev.txt" }} |
|
|
workflows: |
|
|
workflows: |
|
|
version: 2 |
|
|
version: 2 |
|
|
build-back: |
|
|
build-back: |
|
|
|