Skip to content

Commit 6491041

Browse files
committed
Merge branch 'main' into NEXUS-703/remove-nestio-loop
2 parents 5b976c5 + 33e7d79 commit 6491041

File tree

302 files changed

+9821
-2364
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

302 files changed

+9821
-2364
lines changed

.genignore

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,20 @@
1-
# https://www.speakeasyapi.dev/docs/customize-sdks/monkey-patching
1+
# https://www.speakeasy.com/docs/customize/code/monkey-patching
22

33
# ignore human-written files and directories
4-
src/unstructured_client/_unstructured
54
_jupyter
65
_sample_docs
76
_test_unstructured_client
87

98
# ignore Makefile
109
Makefile
1110

12-
# Ignore the general.partition code until we can fix the base_url issue
11+
# Ignore the base resource classes while we're patching in our own server url logic
12+
# If we add a new endpoint, we need to:
13+
# - Comment out the ignore for the right file
14+
# - Generate locally, watch the new endpoint appear
15+
# - Bring back the ignore line and commit
16+
src/unstructured_client/destinations.py
1317
src/unstructured_client/general.py
18+
src/unstructured_client/jobs.py
19+
src/unstructured_client/sources.py
20+
src/unstructured_client/workflows.py

.github/workflows/ci.yaml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
test_unit:
2121
strategy:
2222
matrix:
23-
python-version: ["3.9","3.10","3.11"]
23+
python-version: [ "3.9","3.10","3.11", "3.12" ]
2424
runs-on: ubuntu-latest
2525
steps:
2626
- uses: actions/checkout@v4
@@ -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,12 +42,12 @@ jobs:
4242
run: make install
4343
- name: Lint
4444
run: |
45-
poetry run make lint
45+
make lint
4646
4747
test_integration:
4848
strategy:
4949
matrix:
50-
python-version: ["3.9","3.10","3.11"]
50+
python-version: [ "3.9","3.10","3.11", "3.12" ]
5151
runs-on: ubuntu-latest
5252
steps:
5353
- uses: actions/checkout@v4
@@ -57,9 +57,9 @@ jobs:
5757
python-version: ${{ matrix.python-version }}
5858
- name: Install dependencies
5959
run: make install
60-
- name: Run all tests
60+
- name: Run integration tests
6161
run: |
62-
poetry run make test
62+
make test-integration-docker
6363
env:
6464
UNSTRUCTURED_API_KEY: ${{ secrets.UNSTRUCTURED_API_KEY }}
6565

@@ -79,8 +79,7 @@ jobs:
7979
- name: Install dependencies
8080
run: |
8181
make install
82-
source .venv/bin/activate && make install-test-contract
83-
- name: Run unit tests
82+
- name: Run contract tests
8483
run: |
85-
poetry run make test-contract
84+
make test-contract
8685

.github/workflows/claude.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Claude Code
2+
3+
on:
4+
issue_comment:
5+
types: [created]
6+
pull_request_review_comment:
7+
types: [created]
8+
issues:
9+
types: [opened, assigned]
10+
pull_request_review:
11+
types: [submitted]
12+
13+
jobs:
14+
claude:
15+
if: |
16+
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
17+
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
18+
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
19+
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
20+
runs-on: ubuntu-latest
21+
permissions:
22+
contents: read
23+
pull-requests: read
24+
issues: read
25+
id-token: write
26+
steps:
27+
- name: Checkout repository
28+
uses: actions/checkout@v4
29+
with:
30+
fetch-depth: 1
31+
32+
- name: Run Claude Code
33+
id: claude
34+
uses: anthropics/claude-code-action@beta
35+
with:
36+
anthropic_api_key: ${{ secrets.GH_ANTHROPIC_API_KEY }}
37+
allowed_tools: "Bash(git:*),View,GlobTool,GrepTool,BatchTool"

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
**/__pycache__/
2+
**/.speakeasy/temp/
3+
**/.speakeasy/logs/
4+
.speakeasy/temp/
15
.speakeasy/reports
26
.venv/
37
README-PYPI.md
@@ -11,10 +15,8 @@ __pycache__/
1115
# human-added igore files
1216
.ipynb_checkpoints/
1317
.idea/
14-
1518
.local
1619
*.ipynb
17-
1820
openapi.json
1921
openapi_client.json
2022
openapi_serverless.json

0 commit comments

Comments
 (0)