Skip to content

Commit db7c145

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

1 file changed

Lines changed: 9 additions & 8 deletions

File tree

.github/workflows/test.yml

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -161,26 +161,27 @@ jobs:
161161
uses: actions/setup-python@v4
162162
with:
163163
python-version: 3.11
164+
defaults:
165+
run:
166+
working-directory: /home/runner/work/openflexure-microscope-server/
167+
164168

165169
- name: Clone OpenFlexure Microscope Server
166170
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]
171+
run: git clone https://gitlab.com/openflexure/openflexure-microscope-server.git
172+
173+
- name: Install OFM Server
174+
run: pip install -e .[dev]
171175

172176
- name: Install LabThings-FastAPI
173-
run: pip install -e .
177+
run: pip install -e ../labthings-fastapi/
174178

175179
- name: Run OFM unit tests
176-
working-directory: /home/runner/work/openflexure-microscope-server/
177180
run: pytest
178181

179182
- name: Run OFM integration tests
180-
working-directory: /home/runner/work/openflexure-microscope-server/
181183
run: pytest tests/integration_tests
182184

183185
- name: Run OFM lifecycle test
184-
working-directory: /home/runner/work/openflexure-microscope-server/
185186
run: tests/lifecycle_test/testfile.py
186187

0 commit comments

Comments
 (0)