Skip to content

Commit 71dfd89

Browse files
committed
Configure git credentials.
This is needed for OFM unit tests.
1 parent e77337a commit 71dfd89

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/test.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,10 +161,12 @@ jobs:
161161
working-directory: /home/runner/work/openflexure-microscope-server/
162162
steps:
163163
- uses: actions/checkout@v3
164+
164165
- name: Set up Python
165166
uses: actions/setup-python@v4
166167
with:
167168
python-version: 3.11
169+
168170
- name: Clone OpenFlexure Microscope Server
169171
working-directory: /home/runner/work/
170172
run: git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
@@ -175,6 +177,11 @@ jobs:
175177
- name: Install LabThings-FastAPI
176178
run: pip install -e ../labthings-fastapi/labthings-fastapi/
177179

180+
- name: Configure Git identity
181+
run: |
182+
git config --global user.name "Sir Unit of Test"
183+
git config --global user.email "bogus@email.com"
184+
178185
- name: Run OFM unit tests
179186
run: pytest
180187

0 commit comments

Comments
 (0)