2021-02-10 17:50:34 +01:00
|
|
|
version: 2.1
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
2021-02-10 17:53:50 +01:00
|
|
|
parameters:
|
|
|
|
python-version:
|
|
|
|
type: string
|
2021-02-10 17:50:34 +01:00
|
|
|
docker:
|
2021-10-22 18:39:54 +02:00
|
|
|
- image: cimg/python:<< parameters.python-version >>
|
2021-02-10 17:50:34 +01:00
|
|
|
steps:
|
|
|
|
- checkout
|
|
|
|
- run: pip3 install --upgrade pip
|
2023-03-14 12:49:02 +01:00
|
|
|
- run: if python3 --version | grep -q "Python 3.6"; then pip install --prefer-binary -U opencv-python-headless numpy; fi # to avoid compilation
|
2021-02-10 17:58:58 +01:00
|
|
|
- run: pip3 install -r requirements.txt
|
|
|
|
- run: pip3 install pytest
|
2021-02-10 17:50:34 +01:00
|
|
|
- run: pytest
|
|
|
|
|
|
|
|
workflows:
|
|
|
|
all-tests:
|
|
|
|
jobs:
|
|
|
|
- test:
|
|
|
|
matrix:
|
|
|
|
parameters:
|
2023-03-02 10:06:00 +01:00
|
|
|
python-version: ["3.6", "3.7", "3.8", "3.9", "3.10", "3.11"]
|