Metadata Handler #110
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |