-
Notifications
You must be signed in to change notification settings - Fork 3
42 lines (33 loc) · 943 Bytes
/
predict.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: predict
on:
push:
branches:
- master
concurrency:
group: ${{ github.ref }}
cancel-in-progress: true
defaults:
run:
# GitHub Actions run without a TTY device. This is a workaround to get one,
# based on https://github.com/actions/runner/issues/241#issuecomment-2019042651
shell: 'script --return --quiet --log-out /dev/null --command "bash -e {0}"'
jobs:
inference:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Start container
uses: hoverkraft-tech/[email protected]
with:
compose-file: "./compose-prod.yml"
- name: Run inference
run: docker exec -it ocr-pdf bash predict.sh
- name: Save predictions
id: commit
uses: EndBug/add-and-commit@v9
with:
add: "-- *.pdf"
message: "enhanced pdfs"