Skip to content

Commit b48e017

Browse files
committedMay 20, 2021
fix: auto release
1 parent 134071e commit b48e017

9 files changed

+63
-849
lines changed
 

‎.coveragerc

-5
This file was deleted.

‎.github/workflows/publish.yaml

+47
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Publish
2+
3+
on:
4+
push:
5+
branches:
6+
- master
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-latest
11+
strategy:
12+
max-parallel: 4
13+
matrix:
14+
python-version: [3.6, 3.7, 3.8]
15+
16+
steps:
17+
- uses: actions/checkout@v1
18+
19+
- name: Set up Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v1
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
pip install -r requirements.txt
28+
pip install -e .
29+
- name: Run Test
30+
run: |
31+
pytest tests/
32+
33+
publish:
34+
needs: test
35+
runs-on: ubuntu-latest
36+
37+
steps:
38+
- uses: actions/checkout@v2
39+
with:
40+
fetch-depth: 0
41+
token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
42+
43+
- name: Python Semantic Release
44+
uses: relekang/python-semantic-release@master
45+
with:
46+
github_token: ${{ secrets.ADMIN_GITHUB_TOKEN }}
47+
pypi_token: ${{ secrets.PYPI_PASSWORD }}

‎.github/workflows/python-publish.yml

-31
This file was deleted.

‎botok/config.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,10 @@ def get_dialect_pack(dialect_name, out_dir, version=None):
4242

4343
if not check:
4444
raise IOError("the .zip file couldn't be downloaded.")
45-
else:
46-
# extract the zip in the current folder
47-
z = zipfile.ZipFile(io.BytesIO(r.content))
48-
z.extractall(path=str(out_dir))
45+
46+
# extract the zip in the current folder
47+
z = zipfile.ZipFile(io.BytesIO(r.content))
48+
z.extractall(path=str(out_dir))
4949

5050
print(f"[INFO] Download completed!")
5151

‎botok/vars.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# coding: utf-8
22
from enum import Enum, IntEnum
33

4-
__version__ = "0.8.6"
4+
__version__ = "0.8.5"
55

66
NO_POS = "NOPOS"
77
TSEK = "་"

0 commit comments

Comments
 (0)
Please sign in to comment.