Slackbot
10/03/2023, 5:14 PMElijah Ben Izzy
10/03/2023, 5:18 PMpip install -r requirements-test.txt
python -m pytest tests
As we don’t have integration tests, these are mostly fast enough to run. Then, if you want to simulate circleCI, you can actually use the circleCI CLI… But I’d argue that going through docker run
is going to slow you down, especially for iterating. Makes sense?Elijah Ben Izzy
10/03/2023, 5:19 PMpytest -k
is great for running just one/a few tests)Stefan Krawczyk
10/03/2023, 5:33 PMsudo
:
PYTHON_VERSION='3.8'
TASK=tests
docker run --entrypoint="" -v "$(pwd)":/opt/testing --workdir /opt/testing --env TASK=${TASK} -it circleci/python:${PYTHON_VERSION} /bin/bash -c ".ci/setup.sh && .ci/test.sh"
Stefan Krawczyk
10/03/2023, 5:33 PMSwapnil Dewalkar
10/03/2023, 6:54 PM