Skip to content

Commit 3eb9900

Browse files
committed
run-slow
1 parent 914fc6e commit 3eb9900

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,8 @@ jobs:
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

tests/utils.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,7 @@
1111

1212

1313
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", "")
2115
return commit_msg.lower()
2216

2317

0 commit comments

Comments
 (0)