39 lines (34 loc) · 1.14 KB
/
JOB_tests.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
# Run tests
name: tests
run-name: Tests
on:
workflow_call:
jobs:
test:
name: "Run Testing OS: ${{ matrix.os }} Python: ${{ matrix.python-version }}"
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.8", "3.9", "3.10", "3.11"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
with:
ref: ${{ github.head_ref || github.ref }}
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash # stops windows hosts from using powershell
run: |
pip install poetry pytest
poetry install --no-interaction --no-root -vvv --all-extras
poetry install --no-interaction --no-root --all-extras -vvv
pip install wheel
pip install --upgrade setuptools
pip install --editable ".[test,ml,medical,dev, ocv]"
- name: Run pytest
shell: bash # stops windows hosts from using powershell
run: |
python -m pytest