File tree Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Expand file tree Collapse file tree 2 files changed +14
-4
lines changed Original file line number Diff line number Diff line change @@ -36,21 +36,32 @@ 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
46
run : |
45
47
python -m pip install uv
46
48
python -m uv pip install --system -r requirements/required.txt -r requirements/test.txt
49
+
47
50
- name : Show installed packages
48
51
run : |
49
52
python -m pip list
50
- - name : Test with pytest
53
+
54
+ - name : Fetch latest commit message
55
+ id : get_commit_message
56
+ run : echo "COMMIT_MESSAGE=$(git log -1 --pretty=%B)" >> $GITHUB_ENV
57
+
58
+ - name : Test with PyTest
51
59
env :
52
- COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
53
- run : pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml
60
+ COMMIT_MESSAGE : ${{ env.COMMIT_MESSAGE }}
61
+ run : |
62
+ echo "COMMIT_MESSAGE: ${{ env.COMMIT_MESSAGE }}"
63
+ pytest -v -rsx -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml
64
+
54
65
- name : Upload coverage reports to Codecov
55
66
uses : codecov/codecov-action@v5
56
67
with :
Original file line number Diff line number Diff line change 12
12
13
13
def get_commit_message ():
14
14
commit_msg = os .getenv ("COMMIT_MESSAGE" , "" )
15
- raise ValueError (commit_msg )
16
15
return commit_msg .lower ()
17
16
18
17
You can’t perform that action at this time.
0 commit comments