File tree Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Expand file tree Collapse file tree 2 files changed +10
-10
lines changed Original file line number Diff line number Diff line change 32
32
run : make install
33
33
- name : Run unit tests
34
34
run : |
35
- poetry run make test-unit
35
+ make test-unit
36
36
37
37
lint :
38
38
runs-on : ubuntu-latest
42
42
run : make install
43
43
- name : Lint
44
44
run : |
45
- poetry run make lint
45
+ make lint
46
46
47
47
test_integration :
48
48
strategy :
59
59
run : make install
60
60
- name : Run all tests
61
61
run : |
62
- poetry run make test
62
+ make test
63
63
env :
64
64
UNSTRUCTURED_API_KEY : ${{ secrets.UNSTRUCTURED_API_KEY }}
65
65
81
81
make install
82
82
- name : Run contract tests
83
83
run : |
84
- poetry run make test-contract
84
+ make test-contract
85
85
Original file line number Diff line number Diff line change @@ -28,30 +28,30 @@ test: test-unit test-integration-docker
28
28
29
29
.PHONY : test-unit
30
30
test-unit :
31
- PYTHONPATH=. pytest _test_unstructured_client -v -k " unit"
31
+ poetry run pytest _test_unstructured_client -v -k " unit"
32
32
33
33
.PHONY : test-contract
34
34
test-contract :
35
- PYTHONPATH=. pytest _test_contract -v
35
+ poetry run pytest _test_contract -v
36
36
37
37
# Assumes you have unstructured-api running on localhost:8000
38
38
.PHONY : test-integration
39
39
test-integration :
40
- PYTHONPATH=. pytest _test_unstructured_client -v -k " integration"
40
+ poetry run pytest _test_unstructured_client -v -k " integration"
41
41
42
42
# Runs the unstructured-api in docker for tests
43
43
.PHONY : test-integration-docker
44
44
test-integration-docker :
45
45
-docker stop unstructured-api && docker kill unstructured-api
46
46
docker run --name unstructured-api -p 8000:8000 -d --rm ${DOCKER_IMAGE} --host 0.0.0.0 && \
47
47
curl -s -o /dev/null --retry 10 --retry-delay 5 --retry-all-errors http://localhost:8000/general/docs && \
48
- PYTHONPATH=. pytest _test_unstructured_client -v -k " integration" && \
48
+ poetry run pytest _test_unstructured_client -v -k " integration" && \
49
49
docker kill unstructured-api
50
50
51
51
.PHONY : lint
52
52
lint :
53
- pylint --rcfile=pylintrc src
54
- mypy src
53
+ poetry run pylint --rcfile=pylintrc src
54
+ poetry run mypy src
55
55
56
56
# ############
57
57
# Speakeasy #
You can’t perform that action at this time.
0 commit comments