Skip to content

Commit 1ff2148

Browse files
committed
hello
1 parent 1fc3d6c commit 1ff2148

File tree

2 files changed

+10
-10
lines changed

2 files changed

+10
-10
lines changed

.github/workflows/ci.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
run: make install
3333
- name: Run unit tests
3434
run: |
35-
poetry run make test-unit
35+
make test-unit
3636
3737
lint:
3838
runs-on: ubuntu-latest
@@ -42,7 +42,7 @@ jobs:
4242
run: make install
4343
- name: Lint
4444
run: |
45-
poetry run make lint
45+
make lint
4646
4747
test_integration:
4848
strategy:
@@ -59,7 +59,7 @@ jobs:
5959
run: make install
6060
- name: Run all tests
6161
run: |
62-
poetry run make test
62+
make test
6363
env:
6464
UNSTRUCTURED_API_KEY: ${{ secrets.UNSTRUCTURED_API_KEY }}
6565

@@ -81,5 +81,5 @@ jobs:
8181
make install
8282
- name: Run contract tests
8383
run: |
84-
poetry run make test-contract
84+
make test-contract
8585

Makefile

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,30 +28,30 @@ test: test-unit test-integration-docker
2828

2929
.PHONY: test-unit
3030
test-unit:
31-
PYTHONPATH=. pytest _test_unstructured_client -v -k "unit"
31+
poetry run pytest _test_unstructured_client -v -k "unit"
3232

3333
.PHONY: test-contract
3434
test-contract:
35-
PYTHONPATH=. pytest _test_contract -v
35+
poetry run pytest _test_contract -v
3636

3737
# Assumes you have unstructured-api running on localhost:8000
3838
.PHONY: test-integration
3939
test-integration:
40-
PYTHONPATH=. pytest _test_unstructured_client -v -k "integration"
40+
poetry run pytest _test_unstructured_client -v -k "integration"
4141

4242
# Runs the unstructured-api in docker for tests
4343
.PHONY: test-integration-docker
4444
test-integration-docker:
4545
-docker stop unstructured-api && docker kill unstructured-api
4646
docker run --name unstructured-api -p 8000:8000 -d --rm ${DOCKER_IMAGE} --host 0.0.0.0 && \
4747
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" && \
4949
docker kill unstructured-api
5050

5151
.PHONY: lint
5252
lint:
53-
pylint --rcfile=pylintrc src
54-
mypy src
53+
poetry run pylint --rcfile=pylintrc src
54+
poetry run mypy src
5555

5656
#############
5757
# Speakeasy #

0 commit comments

Comments
 (0)