Skip to content

Commit a9a06a6

Browse files
committed
chore: automatically run tests
1 parent 9e210ea commit a9a06a6

File tree

2 files changed

+16
-7
lines changed

2 files changed

+16
-7
lines changed

.github/workflows/api-test-lint-deploy.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -120,6 +120,8 @@ jobs:
120120
run: make -C api test-cov
121121
- name: Ensure assets build
122122
run: make -C api sdist wheel
123+
- name: Check labware stacking regression tests
124+
run: make -C api test-integration
123125
- name: Upload coverage report
124126
uses: 'codecov/codecov-action@v3'
125127
with:

api/Makefile

Lines changed: 14 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,27 +105,34 @@ sdist:
105105
$(SHX) rm -rf build
106106
$(SHX) ls dist
107107

108-
.PHONY: test
109-
test:
108+
.PHONY: test-unit
109+
test-unit:
110110
$(pytest) $(tests) $(test_opts)
111111

112+
.PHONY: test-integration
113+
test-integration:
114+
$(python) -m integration_testing.labware_stackup
115+
116+
.PHONY: test
117+
test: test-unit test-integration
118+
112119
.PHONY: test-cov
113120
test-cov:
114121
$(pytest) $(tests) $(test_opts) $(cov_opts)
115122

116123
.PHONY: test-ot2
117124
test-ot2:
118-
$(pytest) -m 'not ot3_only and not stackup_testing' $(tests) $(test_opts) --ot2-only --ignore-glob="**/*ot3*"
125+
$(pytest) -m 'not ot3_only' $(tests) $(test_opts) --ot2-only --ignore-glob="**/*ot3*"
119126

120127
.PHONY: lint
121128
lint:
122-
$(python) -m mypy src tests
123-
$(python) -m black --check src tests docs/v2/example_protocols
124-
$(python) -m flake8 src tests
129+
$(python) -m mypy src tests integration_testing
130+
$(python) -m black --check src tests integration_testing docs/v2/example_protocols
131+
$(python) -m flake8 src tests integration_testing
125132

126133
.PHONY: format
127134
format:
128-
$(python) -m black src tests docs/v2/example_protocols
135+
$(python) -m black src tests integration_testing docs/v2/example_protocols
129136

130137
docs/build/html/v%: docs/v%
131138
$(sphinx_build) -b html -d docs/build/doctrees -n $< $@

0 commit comments

Comments
 (0)