@@ -36,24 +36,61 @@ jobs:
3636 runs-on : ${{ matrix.os }}
3737 steps :
3838 - uses : actions/checkout@v4
39+
3940 - name : Set up Python ${{ matrix.python-version }}
4041 uses : actions/setup-python@v5
4142 with :
4243 python-version : ${{ matrix.python-version }}
44+
4345 - 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"
4779
4880 minimum :
4981 runs-on : ubuntu-latest
5082 steps :
5183 - uses : actions/checkout@v4
52- - name : Set up Python ${{ matrix.python-version }}
84+ - name : Set up Python
5385 uses : actions/setup-python@v5
5486 with :
5587 python-version : " 3.9"
5688 - 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
5895 - name : Test with pytest
59- run : pytest
96+ run : pytest -v -rsx -n 2 -k "not logits_match"
0 commit comments