Skip to content

Commit 4187a80

Browse files
authored
Merge branch 'Unstructured-IO:main' into main
2 parents 22400c7 + 23ada7c commit 4187a80

File tree

25 files changed

+4380
-4385
lines changed

25 files changed

+4380
-4385
lines changed

.github/workflows/codeflash.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
name: Codeflash / Optimize new Python code
2+
3+
on:
4+
pull_request:
5+
paths:
6+
- 'unstructured_ingest/**'
7+
8+
9+
concurrency:
10+
group: "${{ github.workflow }}-${{ github.ref }}"
11+
cancel-in-progress: true
12+
13+
14+
jobs:
15+
optimize:
16+
name: Codeflash / Optimize new Python code
17+
if: ${{ github.actor != 'codeflash-ai[bot]' }}
18+
runs-on: ubuntu-latest
19+
env:
20+
CODEFLASH_API_KEY: ${{ secrets.CODEFLASH_API_KEY }}
21+
NLTK_DATA: ${{ github.workspace }}/nltk_data
22+
steps:
23+
- uses: 'actions/checkout@v4'
24+
with:
25+
fetch-depth: 0
26+
- name: Install uv
27+
uses: astral-sh/setup-uv@v5
28+
with:
29+
enable-cache: true
30+
python-version: 3.12
31+
32+
- name: Set up Python
33+
run: uv python install
34+
35+
- name: Codeflash
36+
run: |
37+
uv sync --all-groups --all-extras --upgrade
38+
uv pip install unstructured
39+
uv pip install codeflash
40+
uv run python -m nltk.downloader -d $NLTK_DATA punkt_tab averaged_perceptron_tagger_eng
41+
uv run codeflash

0 commit comments

Comments
 (0)