File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- name : Python package
1+ name : Python Tests
22
33on : [push, pull_request]
44
55jobs :
66 test :
77 runs-on : ubuntu-latest
88 steps :
9- - uses : actions/checkout@v2
10- - name : Set up Python
11- uses : actions/setup-python@v2
9+ - uses : actions/checkout@v4
10+
11+ - name : Set up Python 3.9
12+ uses : actions/setup-python@v5
1213 with :
1314 python-version : ' 3.9'
14- - name : Install dependencies
15+
16+ - name : Install Persian Dependencies
1517 run : |
16- python -m pip install --upgrade pip
17- pip install pytest
18- pip install -e .
19- - name : Run tests
18+ sudo apt-get update
19+ sudo apt-get install -y libgl1
20+
21+ - name : Install Python Dependencies
2022 run : |
21- export PYTHONPATH=$PYTHONPATH:$GITHUB_WORKSPACE
22- pytest tests/
23+ pip install -e .[dev]
24+ pip install hazm gensim scikit-learn tqdm pandas joblib
25+
26+ - name : Run Tests
27+ run : |
28+ pytest tests/ --cov=persent --cov-report=xml
29+ env :
30+ PYTHONPATH : ${{ github.workspace }}
31+
32+ - name : Upload Coverage
33+ uses : codecov/codecov-action@v3
You can’t perform that action at this time.
0 commit comments