Skip to content

Commit c7e722c

Browse files
authored
Update python-package.yml
1 parent 40818fb commit c7e722c

1 file changed

Lines changed: 22 additions & 11 deletions

File tree

Lines changed: 22 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,33 @@
1-
name: Python package
1+
name: Python Tests
22

33
on: [push, pull_request]
44

55
jobs:
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

0 commit comments

Comments
 (0)