Skip to content

Commit a073ff0

Browse files
authored
Merge branch 'master' into exclude_test_suite
2 parents 2ae5b70 + b934119 commit a073ff0

18 files changed

Lines changed: 490 additions & 220 deletions

.coveragerc

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[run]
2+
source = botok
3+
omit = */tests/*,*/test_*,setup.py,botok/utils/expose_data.py,botok/utils/lenient_normalization.py,botok/utils/unicode_normalization.py
4+
5+
[report]
6+
exclude_lines =
7+
pragma: no cover
8+
def __repr__
9+
raise NotImplementedError
10+
if __name__ == .__main__.:
11+
pass
12+
raise ImportError
13+
except ImportError
14+
fail_under = 80
15+
show_missing = True

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
fetch-depth: 0
4242

4343
- name: Python Semantic Release
44-
uses: relekang/python-semantic-release@master
44+
uses: relekang/python-semantic-release@v7.34.6
4545
with:
4646
github_token: ${{ secrets.GITHUB_TOKEN }}
4747
pypi_token: ${{ secrets.PYPI_TOKEN }}
Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python-version: ['3.10', '3.12']
16+
17+
steps:
18+
- uses: actions/checkout@v3
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v4
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
cache: 'pip'
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install flake8 pytest pytest-cov codecov
28+
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
29+
pip install -e .
30+
- name: Lint with flake8
31+
run: |
32+
# stop the build if there are Python syntax errors or undefined names
33+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
34+
# exit-zero treats all errors as warnings
35+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
36+
- name: Test with pytest
37+
run: |
38+
pytest -xvs
39+
- name: Generate coverage report
40+
run: |
41+
pytest --cov=botok --cov-report=xml --cov-fail-under=80
42+
- name: Upload coverage to Codecov
43+
uses: codecov/codecov-action@v3
44+
with:
45+
file: ./coverage.xml
46+
fail_ci_if_error: false

.readthedocs.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
version: 2
2+
3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.9"
7+
8+
python:
9+
install:
10+
- requirements: docs/requirements-docs.txt
11+
- method: pip
12+
path: .
13+
14+
sphinx:
15+
configuration: docs/source/conf.py

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# CHANGELOG
22

33

4+
## v0.8.14 (2025-03-09)
5+
6+
### Bug Fixes
7+
8+
- Improve test coverage to 90% and fix Python 3.12 compatibility
9+
([`8170f40`](https://github.com/OpenPecha/Botok/commit/8170f400c8a66c5f3ed76859f5929f73bb416a32))
10+
11+
412
## v0.8.13 (2025-01-24)
513

614
### Bug Fixes

0 commit comments

Comments
 (0)