【发布时间】:2021-12-29 10:02:00
【问题描述】:
我正在构建阶段管道(环境 prp、测试、代码)。目前已经面临拦截器。似乎每个阶段都是一个单独的过程。我的 requirements.txt 安装正确,但测试阶段引发 ModuleNotFoundError。感谢任何提示如何使它工作:)
yaml:
trigger: none
parameters:
- name: "input_files"
type: object
default: ['a-rg', 't-rg', 'd-rg', 'p-rg']
stages:
- stage: 'Env_prep'
jobs:
- job: "install_requirements"
steps:
- script: |
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
- stage: 'Tests'
jobs:
- job: 'Run_tests'
steps:
- script: |
python -m pytest -v tests/variableGroups_tests.py
【问题讨论】:
标签: python azure azure-devops azure-pipelines