Skip to content

Commit 6afe322

Browse files
committed
Fix working directory for installing labthings
1 parent 7603763 commit 6afe322

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

.github/workflows/test.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -156,31 +156,30 @@ jobs:
156156
test-against-ofm:
157157
runs-on: ubuntu-latest
158158
continue-on-error: true
159+
defaults:
160+
run:
161+
working-directory: /home/runner/work/openflexure-microscope-server/
159162
steps:
160163
- name: Set up Python
161164
uses: actions/setup-python@v4
162165
with:
163166
python-version: 3.11
164-
165167
- name: Clone OpenFlexure Microscope Server
166168
working-directory: /home/runner/work/
167-
run: |
168-
git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
169-
cd openflexure-microscope-server
170-
pip install -e .[dev]
169+
run: git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
170+
171+
- name: Install OFM Server
172+
run: pip install -e .[dev]
171173

172174
- name: Install LabThings-FastAPI
173-
run: pip install -e .
175+
run: pip install -e ../labthings-fastapi/
174176

175177
- name: Run OFM unit tests
176-
working-directory: /home/runner/work/openflexure-microscope-server/
177178
run: pytest
178179

179180
- name: Run OFM integration tests
180-
working-directory: /home/runner/work/openflexure-microscope-server/
181181
run: pytest tests/integration_tests
182182

183183
- name: Run OFM lifecycle test
184-
working-directory: /home/runner/work/openflexure-microscope-server/
185184
run: tests/lifecycle_test/testfile.py
186185

0 commit comments

Comments
 (0)