version: 2.1
orbs:
python: circleci/python@1.5.0
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:
command: pytest
name: Test
when i run this in circle ci i got
From the examples given for the circleci/python ORB and the package list provided for the
cimg/python:3.10.1 image I would say that pytest is not installed by default, but instead loaded by your selected package manager.
The ORB documentation can be found here
https://circleci.com/developer/orbs/orb/circleci/python
One of the examples shows pytest being used with poetry - where poetry is passed pytest as a parameter for the executed command line. Only the pip example has pytest being used directly on the command line.