461bf6fd40
CI / lint (3.11) (push) Blocked by required conditions
CI / lint (3.12) (push) Blocked by required conditions
CI / lint (3.13) (push) Blocked by required conditions
CI / shellcheck (push) Waiting to run
CI / shfmt (push) Waiting to run
CI / setup (3.11) (push) Waiting to run
CI / setup (3.12) (push) Waiting to run
CI / setup (3.13) (push) Waiting to run
CI / check-licenses (3.12) (push) Blocked by required conditions
CI / test_unit (3.11) (push) Blocked by required conditions
CI / test_unit (3.12) (push) Blocked by required conditions
CI / test_unit (3.13) (push) Blocked by required conditions
CI / test_unit_no_extras (3.11) (push) Blocked by required conditions
CI / test_unit_no_extras (3.12) (push) Blocked by required conditions
CI / test_json_to_html (3.12) (push) Blocked by required conditions
CI / test_unit_no_extras (3.13) (push) Blocked by required conditions
CI / test_unit_dependency_extras (csv, 3.11, --extra csv) (push) Blocked by required conditions
CI / test_unit_dependency_extras (csv, 3.12, --extra csv) (push) Blocked by required conditions
CI / test_unit_dependency_extras (csv, 3.13, --extra csv) (push) Blocked by required conditions
CI / test_unit_dependency_extras (docx, 3.11, --extra docx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (docx, 3.12, --extra docx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (docx, 3.13, --extra docx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (markdown, 3.11, --extra md) (push) Blocked by required conditions
CI / test_unit_dependency_extras (markdown, 3.12, --extra md) (push) Blocked by required conditions
CI / test_unit_dependency_extras (markdown, 3.13, --extra md) (push) Blocked by required conditions
CI / test_unit_dependency_extras (odt, 3.11, --extra odt) (push) Blocked by required conditions
CI / test_unit_dependency_extras (odt, 3.12, --extra odt) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pdf-image, 3.12, --extra pdf --extra image --extra paddleocr) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pdf-image, 3.13, --extra pdf --extra image --extra paddleocr) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pptx, 3.13, --extra pptx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (odt, 3.13, --extra odt) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pdf-image, 3.11, --extra pdf --extra image --extra paddleocr) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pptx, 3.11, --extra pptx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pptx, 3.12, --extra pptx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pypandoc, 3.11, --extra epub --extra org --extra rtf --extra rst) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pypandoc, 3.12, --extra epub --extra org --extra rtf --extra rst) (push) Blocked by required conditions
CI / test_unit_dependency_extras (pypandoc, 3.13, --extra epub --extra org --extra rtf --extra rst) (push) Blocked by required conditions
CI / test_unit_dependency_extras (xlsx, 3.11, --extra xlsx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (xlsx, 3.12, --extra xlsx) (push) Blocked by required conditions
CI / test_unit_dependency_extras (xlsx, 3.13, --extra xlsx) (push) Blocked by required conditions
CI / test_ingest_src (3.12) (push) Blocked by required conditions
CI / test_json_to_markdown (3.12) (push) Blocked by required conditions
CI / changelog (push) Waiting to run
CI / test_dockerfile (push) Blocked by required conditions
CodeQL / Analyze (python) (push) Waiting to run
Build And Push Docker Image / set-short-sha (push) Waiting to run
Build And Push Docker Image / build-images (linux/amd64, opensource-linux-8core) (push) Blocked by required conditions
Build And Push Docker Image / build-images (linux/arm64, ubuntu-24.04-arm) (push) Blocked by required conditions
Build And Push Docker Image / publish-images (push) Blocked by required conditions
Partition Benchmark / setup (push) Waiting to run
Partition Benchmark / Measure and compare partition() runtime (push) Blocked by required conditions
131 lines
5.7 KiB
YAML
131 lines
5.7 KiB
YAML
name: Ingest Test Fixtures Update PR
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
env:
|
|
PYTHON_VERSION: "3.12"
|
|
|
|
permissions:
|
|
id-token: write
|
|
contents: read
|
|
|
|
jobs:
|
|
setup:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: ./.github/actions/base-cache
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
|
|
update-fixtures-and-pr:
|
|
runs-on: ubuntu-latest
|
|
needs: [setup]
|
|
steps:
|
|
# actions/checkout MUST come before auth
|
|
- uses: "actions/checkout@v4"
|
|
- uses: ./.github/actions/base-cache
|
|
with:
|
|
python-version: ${{ env.PYTHON_VERSION }}
|
|
- name: Set up Docker Compose
|
|
uses: docker/setup-compose-action@v1
|
|
- name: Update test fixtures
|
|
env:
|
|
AIRTABLE_PERSONAL_ACCESS_TOKEN: ${{ secrets.AIRTABLE_PERSONAL_ACCESS_TOKEN }}
|
|
BOX_APP_CONFIG: ${{ secrets.BOX_APP_CONFIG }}
|
|
CONFLUENCE_API_TOKEN: ${{ secrets.CONFLUENCE_API_TOKEN }}
|
|
CONFLUENCE_USER_EMAIL: ${{ secrets.CONFLUENCE_USER_EMAIL }}
|
|
DISCORD_TOKEN: ${{ secrets.DISCORD_TOKEN }}
|
|
DROPBOX_APP_KEY: ${{ secrets.DROPBOX_APP_KEY }}
|
|
DROPBOX_APP_SECRET: ${{ secrets.DROPBOX_APP_SECRET }}
|
|
DROPBOX_REFRESH_TOKEN: ${{ secrets.DROPBOX_REFRESH_TOKEN }}
|
|
GCP_INGEST_SERVICE_KEY: ${{ secrets.GCP_INGEST_SERVICE_KEY }}
|
|
GH_READ_ONLY_ACCESS_TOKEN: ${{ secrets.GH_READ_ONLY_ACCESS_TOKEN }}
|
|
HUBSPOT_API_TOKEN: ${{ secrets.HUBSPOT_API_TOKEN }}
|
|
JIRA_INGEST_API_TOKEN: ${{ secrets.JIRA_INGEST_API_TOKEN }}
|
|
JIRA_INGEST_USER_EMAIL: ${{ secrets.JIRA_INGEST_USER_EMAIL }}
|
|
MONGODB_URI: ${{ secrets.MONGODB_URI }}
|
|
MONGODB_DATABASE_NAME: ${{ secrets.MONGODB_DATABASE_NAME }}
|
|
MS_CLIENT_CRED: ${{ secrets.MS_CLIENT_CRED }}
|
|
MS_CLIENT_ID: ${{ secrets.MS_CLIENT_ID }}
|
|
MS_TENANT_ID: ${{ secrets.MS_TENANT_ID }}
|
|
MS_USER_EMAIL: ${{ secrets.MS_USER_EMAIL }}
|
|
MS_USER_PNAME: ${{ secrets.MS_USER_PNAME }}
|
|
SALESFORCE_USERNAME: ${{secrets.SALESFORCE_USERNAME}}
|
|
SALESFORCE_CONSUMER_KEY: ${{secrets.SALESFORCE_CONSUMER_KEY}}
|
|
SALESFORCE_PRIVATE_KEY: ${{secrets.SALESFORCE_PRIVATE_KEY}}
|
|
SHAREPOINT_CLIENT_ID: ${{secrets.SHAREPOINT_CLIENT_ID}}
|
|
SHAREPOINT_CRED: ${{secrets.SHAREPOINT_CRED}}
|
|
SHAREPOINT_SITE: ${{secrets.SHAREPOINT_SITE}}
|
|
SHAREPOINT_PERMISSIONS_APP_ID: ${{secrets.SHAREPOINT_PERMISSIONS_APP_ID}}
|
|
SHAREPOINT_PERMISSIONS_APP_CRED: ${{secrets.SHAREPOINT_PERMISSIONS_APP_CRED}}
|
|
SHAREPOINT_PERMISSIONS_TENANT: ${{secrets.SHAREPOINT_PERMISSIONS_TENANT}}
|
|
SLACK_TOKEN: ${{ secrets.SLACK_TOKEN }}
|
|
UNS_API_KEY: ${{ secrets.UNS_API_KEY }}
|
|
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
|
|
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
|
|
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
|
|
AZURE_SEARCH_ENDPOINT: ${{ secrets.AZURE_SEARCH_ENDPOINT }}
|
|
AZURE_SEARCH_API_KEY: ${{ secrets.AZURE_SEARCH_API_KEY }}
|
|
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
|
|
OCTOAI_API_KEY: ${{ secrets.OCTOAI_API_KEY }}
|
|
ASTRA_DB_APPLICATION_TOKEN: ${{secrets.ASTRA_DB_TOKEN}}
|
|
ASTRA_DB_API_ENDPOINT: ${{secrets.ASTRA_DB_ENDPOINT}}
|
|
PINECONE_API_KEY: ${{secrets.PINECONE_API_KEY}}
|
|
MXBAI_API_KEY: ${{secrets.MXBAI_API_KEY}}
|
|
OCR_AGENT: "unstructured.partition.utils.ocr_models.tesseract_ocr.OCRAgentTesseract"
|
|
OVERWRITE_FIXTURES: "true"
|
|
CI: "true"
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install -y libmagic-dev poppler-utils libreoffice
|
|
sudo add-apt-repository -y ppa:alex-p/tesseract-ocr5
|
|
sudo apt-get update
|
|
sudo apt-get install -y tesseract-ocr
|
|
sudo apt-get install -y tesseract-ocr-kor
|
|
sudo apt-get install diffstat
|
|
tesseract --version
|
|
uv run --no-sync ./test_unstructured_ingest/test-ingest-src.sh
|
|
- name: Update HTML fixtures
|
|
run: make html-fixtures-update
|
|
- name: Update markdown fixtures
|
|
run: make markdown-fixtures-update
|
|
|
|
- name: Save branch name to environment file
|
|
id: branch
|
|
run: |
|
|
original_branch=$(git rev-parse --abbrev-ref HEAD)
|
|
suffix="|ingest-test-fixtures-update-$(git rev-parse --short HEAD)"
|
|
branch_name="$original_branch$suffix"
|
|
echo "BRANCH_NAME=$branch_name" >> $GITHUB_ENV
|
|
|
|
- name: Save PR name to environment file
|
|
id: pr
|
|
run: |
|
|
commit_sha=$(git rev-parse HEAD)
|
|
prs=$(curl -s -H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
|
|
"https://api.github.com/repos/${{ github.repository }}/commits/${commit_sha}/pulls")
|
|
pr_name=$(echo "$prs" | jq -r '.[0].title')
|
|
echo "PR_NAME=$pr_name" >> $GITHUB_ENV
|
|
|
|
- name: Create Pull Request
|
|
uses: peter-evans/create-pull-request@v5
|
|
with:
|
|
token: ${{ secrets.GH_CREATE_PR_TOKEN }}
|
|
add-paths: |
|
|
test_unstructured_ingest/expected-structured-output
|
|
test_unstructured_ingest/expected-structured-output-html
|
|
test_unstructured_ingest/expected-structured-output-markdown
|
|
test_unstructured_ingest/metrics
|
|
commit-message: "Update ingest test fixtures"
|
|
branch: ${{ env.BRANCH_NAME }}
|
|
title: "${{ env.PR_NAME }} <- Ingest test fixtures update"
|
|
assignees: ${{ github.actor }}
|
|
reviewers: ${{ github.actor }}
|
|
delete-branch: true
|
|
body: |
|
|
This pull request includes updated ingest test fixtures.
|
|
Please review and merge if appropriate.
|
|
base: ${{ github.head_ref }}
|