-
Notifications
You must be signed in to change notification settings - Fork 0
42 lines (38 loc) · 1.25 KB
/
pipeline.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: Run Project Pipeline
on:
pull_request:
branches:
- main
jobs:
linter:
name: PyLint check
runs-on: ubuntu-latest
steps:
- name: linter checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: pip install -r requirements.txt
- run: pylint ./**/*.py
testing:
name: UnitTest
runs-on: ubuntu-latest
steps:
- name: checkout and testing
uses: actions/checkout@v3
with:
fetch-depth: 0
- run: sudo mkdir /watched
- run: sudo mkdir /watched/spell_checking
- run: sudo mkdir /watched/file_loader
- run: sudo mkdir /watched/text_extraction
- run: sudo mkdir /watched/output
- run: sudo chmod -R 777 /watched/spell_checking
- run: sudo chmod -R 777 /watched/file_loader
- run: sudo chmod -R 777 /watched/text_extraction
- run: sudo chmod -R 777 /watched/output
- run: sudo apt-get update
- run: sudo apt-get install poppler-utils
- run: sudo apt-get install libleptonica-dev tesseract-ocr libtesseract-dev python3-pil tesseract-ocr-eng tesseract-ocr-dan tesseract-ocr-script-latn
- run: pip install -r requirements.txt
- run: "python3 -m unittest discover -s src -p 'test_*.py'"