I am trying to store pip libraries installed in the initial step as artifacts, so that it can be reused in the parallel steps later on. Unfortunately, when "Test part 1" and "Test part 2" are executed, mentioned libraries does not exist.
Moreover, mentioned artifacts are not visible even in the Artifacts tab in Bitbucket window
image: python:3.8
options:
max-time: 20
definitions:
steps:
- step: &fetch-and-build
name: Update image
caches:
- pip
- docker
services:
- docker
script:
- pip install -r requirements.txt -U
- pip list -v
artifacts:
- /usr/local/lib/python3.8/**
services:
postgres:
image: postgres
memory: 512
variables:
POSTGRES_HOST_AUTH_METHOD: 'trust'
redis:
image: redis
memory: 256
docker:
memory: 2048
default:
- step: *fetch-and-build
- parallel:
- step:
name: "Test part 1"
caches:
- pip
- docker
script:
- pip list -v
- export COVERAGE_PROCESS_START=./.coveragerc
- coverage run --parallel-mode --concurrency=multiprocessing --rcfile=./.coveragerc manage.py test -v 3 --parallel=5 payments
services:
- redis
- postgres
- docker
artifacts:
- htmlcov/**
- htmlcov/index.html
- coverage/.coverage
- /usr/local/lib/python3.8/**
- step:
name: "Test part 2"
caches:
- pip
- docker
script:
- export COVERAGE_PROCESS_START=./.coveragerc
- coverage run --parallel-mode --concurrency=multiprocessing --rcfile=./.coveragerc manage.py test -v 3 --parallel=5 feed jobs
services:
- redis
- postgres
- docker
artifacts:
- htmlcov/**
- htmlcov/index.html
- coverage/.coverage
- /usr/local/lib/python3.8/**