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 4848 run : |
4949 python -m pip list
5050 - name : Test with pytest
51+ env :
52+ COMMIT_MESSAGE : ${{ github.event.head_commit.message }}
5153 run : pytest -v -n 2 --cov=segmentation_models_pytorch --cov-report=xml --cov-config=pyproject.toml
5254 - name : Upload coverage reports to Codecov
5355 uses : codecov/codecov-action@v5
Original file line number Diff line number Diff line change 1111
1212
1313def 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" , "" )
2115 return commit_msg .lower ()
2216
2317
You can’t perform that action at this time.
0 commit comments