Skip to content

Commit 1e279bf

Browse files
author
Your Name
committed
Set git identity in CI tests
1 parent 0031b38 commit 1e279bf

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

.github/workflows/ubuntu-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ jobs:
5656
-r requirements/requirements-playwright.in \
5757
".[help,playwright]"
5858
59+
- name: Configure Git for tests
60+
run: |
61+
git config --global user.name "Test User"
62+
git config --global user.email "test@example.com"
63+
git config --global init.defaultBranch main
64+
5965
- name: Run tests
6066
run: |
6167
pytest

.github/workflows/windows-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ jobs:
4444
pip install uv
4545
uv pip install --system pytest pytest-asyncio pytest-mock -r requirements/requirements.in -r requirements/requirements-help.in -r requirements/requirements-playwright.in '.[help,playwright]'
4646
47+
- name: Configure Git for tests
48+
run: |
49+
git config --global user.name "Test User"
50+
git config --global user.email "test@example.com"
51+
git config --global init.defaultBranch main
52+
4753
- name: Run tests
4854
run: |
4955
pytest

0 commit comments

Comments
 (0)