Skip to content

Commit 367e137

Browse files
authored
Merge pull request #345 from simvue-io/hotfix/git-windows-metadata
Add default if 'user' cannot be retrieved for dirty commit
2 parents 6e13b04 + 172662d commit 367e137

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

.github/workflows/test_client_macos.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ jobs:
2828
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
2929
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
3030
poetry install --all-extras
31-
poetry run pytest tests/unit/ tests/refactor/
31+
poetry run pytest tests/unit/ tests/refactor/ -m 'not scenario'

.github/workflows/test_client_ubuntu.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
3131
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
3232
poetry install --all-extras
33-
poetry run pytest --cov --cov-report=xml tests/unit/ tests/refactor/
33+
poetry run pytest --cov --cov-report=xml tests/unit/ tests/refactor/ -m 'not scenario'
3434
- name: Upload coverage reports to Codecov
3535
run: |
3636
curl -Os https://uploader.codecov.io/latest/linux/codecov

.github/workflows/test_client_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
3030
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
3131
poetry install --all-extras
32-
poetry run pytest tests/unit/ tests/refactor/
32+
poetry run pytest tests/unit/ tests/refactor/ -m 'not scenario'

.github/workflows/test_multiple_python.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,4 +32,4 @@ jobs:
3232
export SIMVUE_URL=${{ secrets.SIMVUE_URL }}
3333
export SIMVUE_TOKEN=${{ secrets.SIMVUE_TOKEN }}
3434
poetry install --all-extras
35-
poetry run pytest --cov --cov-report=xml tests/unit/ tests/refactor/
35+
poetry run pytest tests/unit/ tests/refactor/ -m 'not scenario'

simvue/metadata.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def git_info(repository: str) -> dict[str, typing.Any]:
4545
# In the case where the repository is dirty blame should point to the
4646
# current developer, not the person responsible for the latest commit
4747
if dirty := git_repo.is_dirty():
48-
blame = git_repo.config_reader().get_value("user", "email")
48+
blame = git_repo.config_reader().get_value("user", "email", "unknown")
4949
else:
5050
blame = current_commit.committer.email
5151

0 commit comments

Comments
 (0)