Конвейер Bitbucket не может найти файл в тестовой папке: FileNotFoundError: [Errno 2] - PullRequest
0 голосов
/ 09 мая 2020

Я получаю следующую ошибку в конвейере битбакета:

E   FileNotFoundError: [Errno 2] File /opt/atlassian/pipelines/agent/build/tests/Test_input.csv does not exist: '/opt/atlassian/pipelines/agent/build/tests/Test_input.csv'

Но файл существует: проверьте снимок экрана

Он работает в моей системе но не в bitbucket, следует ли добавить путь к bitbucket-pipelines.yml? Как?

Вот bitbucket-pipelines.yml

image: python:3.7.3

pipelines:
  default:
    - step:
        script:
          - pip install -r requirements.txt
          - pip install swolfpy-inputdata
          - pytest 

, а вот мой pytest.ini

[pytest]
python_paths = swolfpy_inputdata
testpaths = tests
python_files = tests/test_*.py  tests/*_test.py
minversion = 5.4
addopts = --verbose --durations=10 --color=yes  --cov=swolfpy_inputdata
...