@@ -142,7 +142,7 @@ export UNSTRUCTURED_INCLUDE_DEBUG_METADATA ?= false
142142.PHONY : test
143143test :
144144PYTHONPATH=. CI=$(CI ) \
145- UNSTRUCTURED_INCLUDE_DEBUG_METADATA=$(UNSTRUCTURED_INCLUDE_DEBUG_METADATA ) ${PYTHON} -m pytest test_${PACKAGE_NAME} --cov=${PACKAGE_NAME} --cov-report term-missing --durations=40
145+ UNSTRUCTURED_INCLUDE_DEBUG_METADATA=$(UNSTRUCTURED_INCLUDE_DEBUG_METADATA ) ${PYTHON} -m pytest -n auto test_${PACKAGE_NAME} --cov=${PACKAGE_NAME} --cov-report term-missing --durations=40
146146
147147.PHONY : test-unstructured-api-unit
148148test-unstructured-api-unit :
@@ -151,60 +151,60 @@ test-unstructured-api-unit:
151151.PHONY : test-no-extras
152152test-no-extras :
153153PYTHONPATH=. CI=$(CI ) \
154- UNSTRUCTURED_INCLUDE_DEBUG_METADATA=$(UNSTRUCTURED_INCLUDE_DEBUG_METADATA ) ${PYTHON} -m pytest \
154+ UNSTRUCTURED_INCLUDE_DEBUG_METADATA=$(UNSTRUCTURED_INCLUDE_DEBUG_METADATA ) ${PYTHON} -m pytest -n auto \
155155test_${PACKAGE_NAME} /partition/test_text.py \
156156test_${PACKAGE_NAME} /partition/test_email.py \
157157test_${PACKAGE_NAME} /partition/html/test_partition.py \
158158test_${PACKAGE_NAME} /partition/test_xml.py
159159
160160.PHONY : test-extra-csv
161161test-extra-csv :
162- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest \
162+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto \
163163test_unstructured/partition/test_csv.py \
164164test_unstructured/partition/test_tsv.py
165165
166166.PHONY : test-extra-docx
167167test-extra-docx :
168- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest \
168+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto \
169169test_unstructured/partition/test_doc.py \
170170test_unstructured/partition/test_docx.py
171171
172172.PHONY : test-extra-epub
173173test-extra-epub :
174- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/partition/test_epub.py
174+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/partition/test_epub.py
175175
176176.PHONY : test-extra-markdown
177177test-extra-markdown :
178- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/partition/test_md.py
178+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/partition/test_md.py
179179
180180.PHONY : test-extra-odt
181181test-extra-odt :
182- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/partition/test_odt.py
182+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/partition/test_odt.py
183183
184184.PHONY : test-extra-pdf-image
185185test-extra-pdf-image :
186- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/partition/pdf_image
186+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/partition/pdf_image
187187
188188.PHONY : test-extra-pptx
189189test-extra-pptx :
190- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest \
190+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto \
191191test_unstructured/partition/test_ppt.py \
192192test_unstructured/partition/test_pptx.py
193193
194194.PHONY : test-extra-pypandoc
195195test-extra-pypandoc :
196- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest \
196+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto \
197197test_unstructured/partition/test_org.py \
198198test_unstructured/partition/test_rst.py \
199199test_unstructured/partition/test_rtf.py
200200
201201.PHONY : test-extra-xlsx
202202test-extra-xlsx :
203- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/partition/test_xlsx.py
203+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/partition/test_xlsx.py
204204
205205.PHONY : test-text-extraction-evaluate
206206test-text-extraction-evaluate :
207- PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest test_unstructured/metrics/test_text_extraction.py
207+ PYTHONPATH=. CI=$(CI ) ${PYTHON} -m pytest -n auto test_unstructured/metrics/test_text_extraction.py
208208
209209# # check: runs linters (includes tests)
210210.PHONY : check
0 commit comments