I have a .gitlab-ci.yml
which looks like this:
image: "python:3.7"
before_script:
- pip install -r requirements.txt
stages:
- stageA
- stageB
stage_a:
stage: stageA
script:
- run_some_python_scripts
stage_b:
stage: stageB
script:
- run_more_python_scripts
With this setup, requirements.txt
is installed before every stage.
I need it installed only once, such that both stageA
and stageB
can use.
How can I achieve this?