No such file or directory when i try to run the pytest in virtual env

version: 2.1

orbs:
python: circleci/python@1.5.0

sonarcloud: sonarsource/sonarcloud@1.0.3

workflows:
build_and_test:
jobs:
- build_and_test:
filters:
branches:
only: circleci
jobs:
build_and_test:
docker:
- image: cimg/python:3.10.1
steps:
- checkout
- python/install-packages:
pkg-manager: poetry
- run:
name: Run tests
command: python pytest -v

ci result -#!/bin/bash -eo pipefail
python pytest -v
/home/circleci/.pyenv/versions/3.10.1/bin/python: can’t open file ‘/home/circleci/project/pytest’: [Errno 2] No such file or directory

Exited with code exit status 2
CircleCI received exit code 2