Skip to content

Commit 2a10623

Browse files
committed
Add an explicit checkout and run mypy
Thanks to @julianstirling for code review.
1 parent b586570 commit 2a10623

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

.github/workflows/test.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,12 +167,13 @@ jobs:
167167
with:
168168
python-version: 3.11
169169

170-
- name: Clone OpenFlexure Microscope Server
170+
- name: Install OpenFlexure Microscope Server
171171
working-directory: /home/runner/work/
172-
run: git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
173-
174-
- name: Install OFM Server
175-
run: pip install -e .[dev]
172+
run: |
173+
git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
174+
cd openflexure-microscope-server
175+
git checkout v3
176+
pip install -e .[dev]
176177
177178
- name: Install LabThings-FastAPI
178179
run: pip install -e ../labthings-fastapi/labthings-fastapi/
@@ -193,4 +194,6 @@ jobs:
193194

194195
- name: Run OFM lifecycle test
195196
run: tests/lifecycle_test/testfile.py
196-
197+
198+
- name: Type check with `mypy`
199+
run: mypy src

0 commit comments

Comments
 (0)