Сбой конвейера Bitbucket при запуске автоматизации с помощью Python драматургаPython

Программы на Python
Anonymous
Сбой конвейера Bitbucket при запуске автоматизации с помощью Python драматурга

Сообщение Anonymous »

Это мой файл yml

Код: Выделить всё

image: mcr.microsoft.com/playwright/python:v1.47.0-noble

pipelines:
default:
- step:
name: Install Dependencies
caches:
- pip
script:
- pip install --upgrade pip
- pip install -r requirements.txt
- pip install pytest allure-pytest  # Explicitly install pytest and allure-pytest
- python -m playwright install --with-deps

- step:
name: Run Playwright Tests
script:
- python -m pytest tests/ --alluredir=allure-results

- step:
name: Generate Allure Report
script:
- allure serve allure-results

- step:
name: Archive Allure Results
artifacts:
- allure-results/**
script:
- echo "Allure results archived."
Сообщение об ошибке:

Код: Выделить всё

+ python -m pytest tests/ --alluredir=allure-results
/usr/bin/python: No module named pytest
Я попробовал тесты pytest/, но та же ошибка.
Как исправить ошибку?

Подробнее здесь: https://stackoverflow.com/questions/790 ... ght-python

Вернуться в «Python»