@@ -36,24 +36,61 @@ jobs:
36
36
runs-on : ${{ matrix.os }}
37
37
steps :
38
38
- uses : actions/checkout@v4
39
+
39
40
- name : Set up Python ${{ matrix.python-version }}
40
41
uses : actions/setup-python@v5
41
42
with :
42
43
python-version : ${{ matrix.python-version }}
44
+
43
45
- name : Install dependencies
44
- run : python -m pip install -r requirements/required.txt -r requirements/test.txt
45
- - name : Test with pytest
46
- run : pytest
46
+ run : |
47
+ python -m pip install uv
48
+ python -m uv pip install --system -r requirements/required.txt -r requirements/test.txt
49
+
50
+ - name : Show installed packages
51
+ run : |
52
+ python -m pip list
53
+
54
+ - name : Test with PyTest
55
+ run : |
56
+ pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml -k "not logits_match"
57
+
58
+ - name : Upload coverage reports to Codecov
59
+ uses : codecov/codecov-action@v5
60
+ with :
61
+ token : ${{ secrets.CODECOV_TOKEN }}
62
+ slug : qubvel-org/segmentation_models.pytorch
63
+ if : matrix.os == 'macos-latest' && matrix.python-version == '3.12'
64
+
65
+ test_logits_match :
66
+ runs-on : ubuntu-latest
67
+ steps :
68
+ - uses : actions/checkout@v4
69
+ - name : Set up Python
70
+ uses : actions/setup-python@v5
71
+ with :
72
+ python-version : " 3.10"
73
+ - name : Install dependencies
74
+ run : |
75
+ python -m pip install uv
76
+ python -m uv pip install --system -r requirements/required.txt -r requirements/test.txt
77
+ - name : Test with PyTest
78
+ run : RUN_SLOW=1 pytest -v -rsx -n 2 -k "logits_match"
47
79
48
80
minimum :
49
81
runs-on : ubuntu-latest
50
82
steps :
51
83
- uses : actions/checkout@v4
52
- - name : Set up Python ${{ matrix.python-version }}
84
+ - name : Set up Python
53
85
uses : actions/setup-python@v5
54
86
with :
55
87
python-version : " 3.9"
56
88
- name : Install dependencies
57
- run : python -m pip install -r requirements/minimum.old -r requirements/test.txt
89
+ run : |
90
+ python -m pip install uv
91
+ python -m uv pip install --system -r requirements/minimum.old -r requirements/test.txt
92
+ - name : Show installed packages
93
+ run : |
94
+ python -m pip list
58
95
- name : Test with pytest
59
- run : pytest
96
+ run : pytest -v -rsx -n 2 -k "not logits_match"
0 commit comments