You can use docker or install python 3.10 on your local machine.
First you need to access to the container
docker build -t tasker .
docker run --rm --env-file .env -p 80:80 -it -v ${PWD}/tasker:/app/tasker -v ${PWD}/templates:/app/templates -v ${PWD}/tests:/app/tests tasker bash
You need to install the test dependencies
pip install .[test]
Then to run the tests you can execute
coverage run -m pytest tests/
pip install .
coverage report -m