Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 34 additions & 0 deletions .github/workflows/desktop-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,44 @@ jobs:
if: runner.os == 'Windows'
shell: pwsh
run: .\scripts\fetch-catboost-windows.ps1
- name: Check formatting (advisory)
if: runner.os == 'Linux'
continue-on-error: true
run: cargo fmt --all -- --check
- name: Run Clippy (advisory)
if: runner.os == 'Linux'
continue-on-error: true
run: cargo clippy --locked --all-targets
- name: Test production feature set
run: cargo test --locked
- name: Test development feature set
run: cargo test --locked --features devtools
- name: Exercise isolated PDF workers
if: runner.os == 'Linux'
env:
LAWPDF_SMOKE_PDF: ${{ github.workspace }}/tests/fixtures/ocr/scanned-law-review-sample.pdf
XDG_DATA_HOME: ${{ runner.temp }}/lawpdf-worker-smoke
LAWPDF_DISABLE_PERFORMANCE_CACHE: "1"
run: |
cargo build --locked --features devtools
"$CARGO_TARGET_DIR/debug/lawpdf" --smoke-pdf-isolation
- name: Measure opening pipeline on a fixture
if: runner.os == 'Linux'
env:
LAWPDF_BENCH_DATA_DIR: ${{ runner.temp }}/lawpdf-open-benchmark-data
run: |
"$CARGO_TARGET_DIR/debug/lawpdf" --bench-open-pipeline \
"$GITHUB_WORKSPACE/tests/fixtures/ocr/scanned-law-review-sample.pdf" \
> "$RUNNER_TEMP/lawpdf-open-benchmark.json"
cat "$RUNNER_TEMP/lawpdf-open-benchmark.json"
- name: Enforce synthetic Review frame median budgets
if: runner.os == 'Linux'
env:
LAWPDF_ENFORCE_REVIEW_BUDGETS: "1"
run: cargo test --release --locked review_frame_cost -- --ignored --nocapture
- name: Test release preparation without network
if: runner.os == 'Linux'
run: python3 -B -m unittest discover -s tools -p test_prepare_release.py
- name: Verify public runtime assets
run: python tools/verify_release_manifest.py --require-platform-library
- name: Verify Markdown exports
Expand Down
48 changes: 0 additions & 48 deletions .github/workflows/prepare-0.2.33.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/prepare-0.2.36.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/prepare-0.2.37.yml

This file was deleted.

48 changes: 0 additions & 48 deletions .github/workflows/prepare-0.2.44.yml

This file was deleted.

49 changes: 0 additions & 49 deletions .github/workflows/prepare-0.2.45.yml

This file was deleted.

39 changes: 39 additions & 0 deletions .github/workflows/prepare-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Prepare reviewed LawPDF release

on:
workflow_dispatch:
inputs:
version:
description: Version matching Cargo.toml and release-manifest.json (without v)
required: true
type: string
expected_commit:
description: Full reviewed main-branch commit SHA
required: true
type: string

permissions:
contents: read

concurrency:
group: prepare-lawpdf-${{ inputs.version }}
cancel-in-progress: false

jobs:
prepare:
if: github.repository == 'yonathanarbel/LawPDF' && github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
timeout-minutes: 5
permissions:
contents: write
actions: write
steps:
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262
with:
persist-credentials: false
- name: Tag the reviewed commit and request verification builds
env:
GH_TOKEN: ${{ github.token }}
RELEASE_VERSION: ${{ inputs.version }}
EXPECTED_COMMIT: ${{ inputs.expected_commit }}
run: python3 tools/prepare_release.py --version "$RELEASE_VERSION" --expected-commit "$EXPECTED_COMMIT"
33 changes: 0 additions & 33 deletions .github/workflows/publish-0.2.32.yml

This file was deleted.

Loading
Loading