3636 runs-on : ${{ matrix.os }}
3737 steps :
3838 - uses : actions/checkout@v4
39- with :
40- fetch-depth : 1 # Fetch the latest commit to inspect its message
4139
4240 - name : Set up Python ${{ matrix.python-version }}
4341 uses : actions/setup-python@v5
5351 run : |
5452 python -m pip list
5553
56- - name : Fetch latest commit message
57- id : get_commit_message
58- run : echo "COMMIT_MESSAGE=$(git log -2 --pretty=%B)" >> $GITHUB_ENV
59-
6054 - name : Test with PyTest
61- env :
62- COMMIT_MESSAGE : ${{ env.COMMIT_MESSAGE }}
6355 run : |
64- echo "COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }}"
65- pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml
56+ pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml -k "not logits_match"
6657
6758 - name : Upload coverage reports to Codecov
6859 uses : codecov/codecov-action@v5
@@ -71,11 +62,26 @@ jobs:
7162 slug : qubvel-org/segmentation_models.pytorch
7263 if : matrix.os == 'macos-latest' && matrix.python-version == '3.12'
7364
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.9"
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"
79+
7480 minimum :
7581 runs-on : ubuntu-latest
7682 steps :
7783 - uses : actions/checkout@v4
78- - name : Set up Python ${{ matrix.python-version }}
84+ - name : Set up Python
7985 uses : actions/setup-python@v5
8086 with :
8187 python-version : " 3.9"
8793 run : |
8894 python -m pip list
8995 - name : Test with pytest
90- run : pytest -v -rsx -n 2
96+ run : pytest -v -rsx -n 2 -k "not logits_match"
0 commit comments