File tree Expand file tree Collapse file tree 4 files changed +24
-22
lines changed Expand file tree Collapse file tree 4 files changed +24
-22
lines changed Original file line number Diff line number Diff line change @@ -29,20 +29,20 @@ jobs:
29
29
with :
30
30
python-version : ${{ matrix.python-version }}
31
31
- name : Install dependencies
32
- run : make install-test
32
+ run : make install
33
33
- name : Run unit tests
34
34
run : |
35
- make install
36
- make test-unit
35
+ poetry run make test-unit
37
36
38
37
lint :
39
38
runs-on : ubuntu-latest
40
39
steps :
41
40
- uses : actions/checkout@v4
42
41
- name : Install dependencies
43
- run : make install-dev
42
+ run : make install
44
43
- name : Lint
45
- run : make lint
44
+ run : |
45
+ poetry run make lint
46
46
47
47
test_integration :
48
48
strategy :
@@ -56,11 +56,10 @@ jobs:
56
56
with :
57
57
python-version : ${{ matrix.python-version }}
58
58
- name : Install dependencies
59
- run : make install-test
59
+ run : make install
60
60
- name : Run all tests
61
61
run : |
62
- make install
63
- make test
62
+ poetry run make test
64
63
env :
65
64
UNSTRUCTURED_API_KEY : ${{ secrets.UNSTRUCTURED_API_KEY }}
66
65
Original file line number Diff line number Diff line change @@ -7,19 +7,12 @@ DOCKER_IMAGE ?= downloads.unstructured.io/unstructured-io/unstructured-api:lates
7
7
# Install #
8
8
# ##########
9
9
10
- .PHONY : install-test
11
- install-test :
12
- pip install pytest pytest-asyncio pytest-mock requests_mock pypdf deepdiff requests-toolbelt uvloop
13
-
14
- .PHONY : install-dev
15
- install-dev :
16
- pip install poetry
17
- python scripts/prepare-readme.py
18
- poetry install
19
-
20
10
# # install: installs all test, dev, and experimental requirements
21
11
.PHONY : install
22
- install : install-test install-dev
12
+ install :
13
+ pip install poetry mypy pylint uvloop jupyter
14
+ python scripts/prepare-readme.py
15
+ poetry install
23
16
24
17
# ################
25
18
# Test and Lint #
Original file line number Diff line number Diff line change @@ -12,9 +12,14 @@ generation:
12
12
python :
13
13
version : 0.26.0-beta.1
14
14
additionalDependencies :
15
- dev : {}
16
- main :
15
+ dev :
17
16
deepdiff : ' >=6.0'
17
+ jupyter : ' >=1.1.1'
18
+ pytest : ' >=8.3.3'
19
+ pytest-asyncio : ' >=0.24.0'
20
+ pytest-mock : ' >=3.14.0'
21
+ uvloop : ' >=0.20.0'
22
+ main :
18
23
httpx : ' >=0.27.0'
19
24
nest-asyncio : ' >=1.6.0'
20
25
pypdf : ' >=4.0'
Original file line number Diff line number Diff line change @@ -19,7 +19,6 @@ in-project = true
19
19
20
20
[tool .poetry .dependencies ]
21
21
python = " ^3.8"
22
- deepdiff = " >=6.0"
23
22
eval-type-backport = " ^0.2.0"
24
23
httpx = " >=0.27.0"
25
24
jsonpath-python = " ^1.0.6"
@@ -31,9 +30,15 @@ requests-toolbelt = ">=1.0.0"
31
30
typing-inspect = " ^0.9.0"
32
31
33
32
[tool .poetry .group .dev .dependencies ]
33
+ deepdiff = " >=6.0"
34
+ jupyter = " >=1.1.1"
34
35
mypy = " ==1.10.1"
35
36
pylint = " ==3.2.3"
37
+ pytest = " >=8.3.3"
38
+ pytest-asyncio = " >=0.24.0"
39
+ pytest-mock = " >=3.14.0"
36
40
types-python-dateutil = " ^2.9.0.20240316"
41
+ uvloop = " >=0.20.0"
37
42
38
43
[build-system ]
39
44
requires = [" poetry-core" ]
You can’t perform that action at this time.
0 commit comments