Skip to content

Commit 1528184

Browse files
parallelize tests
1 parent 6457794 commit 1528184

File tree

4 files changed

+165
-123
lines changed

4 files changed

+165
-123
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ jobs:
6565
with:
6666
path: |
6767
.venv
68-
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt') }}
68+
key: ci-venv-${{ env.PIPELINE_FAMILY }}-${{ hashFiles('requirements/base.txt', 'requirements/test.txt') }}
6969
- name: Run core tests
7070
run: |
7171
source .venv/bin/activate

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ run-web-app:
9595
## test: runs core tests
9696
.PHONY: test
9797
test:
98-
PYTHONPATH=. pytest -v test_${PIPELINE_PACKAGE} --cov=${PACKAGE_NAME} --cov-report term-missing
98+
PYTHONPATH=. pytest -n auto -v test_${PIPELINE_PACKAGE} --cov=${PACKAGE_NAME} --cov-report term-missing
9999

100100
# Setting a low bar here - need more tests!
101101
.PHONY: check-coverage

requirements/test.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ flake8
88
mypy
99
pytest-cov
1010
pytest-mock
11+
pytest-xdist
1112
nbdev
1213
jupyter
1314
httpx

0 commit comments

Comments
 (0)