1) Update `pytest` to min version 8 (#429)

* Update `pytest` to min version 8

* updates (dycw)
(SHA: 9deb95f43ee13d92fc7fcfee5bdf527058c0be19)