-
Notifications
You must be signed in to change notification settings - Fork 0
76 lines (55 loc) · 1.68 KB
/
workloads.yaml
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
name: Multilanguage Invoice OCR
on:
push:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
EMAIL_USER: ${{ secrets.EMAIL_USER }}
EMAIL_PASSWORD: ${{ secrets.EMAIL_PASSWORD }}
USERNAME: ${{ secrets.USERNAME }}
PASSWORD: ${{ secrets.PASSWORD }}
steps:
- name: Checkout repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.10.12
- name: Install dependencies
run: |
sudo apt update
sudo apt install make
make install
# - name: run test base extractor and ollama setup
# run: |
# docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
# docker exec ollama ollama run llama3.1:8b
# python src/base_extractors.py
- name: Run get employee names test
run: python src/employee_name.py
- name: Run get egw csv file test
run: python src/egw_export.py
- name: Run excel_export test
run: python src/export_excel/main.py
- name: Run LDAP test
run: python src/ldap_authen.py
- name: Run validate invoice test
run: python src/validate_invoice.py
- name: Run email test
run: python src/mail.py
- name: Run paddleocr test
run: python src/ocr_reader.py
- name: Run invoice extraction test
run: python src/invoice_extraction.py
- name: run test MongoDB
run: |
docker run -d \
--name mongodb \
-p 27017:27017 \
mongo:latest
# Run the mongodb
python src/mongo_database.py