File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change 48
48
run : |
49
49
python -m pip list
50
50
- name : Test with pytest
51
+ env :
52
+ COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
51
53
run : pytest -v -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml
52
54
- name : Upload coverage reports to Codecov
53
55
uses : codecov/codecov-action@v5
Original file line number Diff line number Diff line change 11
11
12
12
13
13
def get_commit_message ():
14
- # Get commit message from CI environment variables
15
- # Common CI systems store commit messages in different env vars
16
- commit_msg = os .getenv ("COMMIT_MESSAGE" , "" ) # Generic
17
- if not commit_msg :
18
- commit_msg = os .getenv ("CI_COMMIT_MESSAGE" , "" ) # GitLab CI
19
- if not commit_msg :
20
- commit_msg = os .getenv ("GITHUB_EVENT_HEAD_COMMIT_MESSAGE" , "" ) # GitHub Actions
14
+ commit_msg = os .getenv ("COMMIT_MESSAGE" , "" )
21
15
return commit_msg .lower ()
22
16
23
17
You can’t perform that action at this time.
0 commit comments