-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
update sansorchi for version 5 (#52)
- Loading branch information
Showing
29 changed files
with
322 additions
and
702 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,54 +1,56 @@ | ||
name: Tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- "*.x" | ||
branches: [main] | ||
paths-ignore: | ||
- "docs/**" | ||
- "*.md" | ||
- "*.rst" | ||
- "*.yml" | ||
- "*.yaml" | ||
|
||
|
||
pull_request: | ||
branches: | ||
- main | ||
- "*.x" | ||
branches: [main] | ||
paths-ignore: | ||
- "docs/**" | ||
- "*.md" | ||
- "*.rst" | ||
- "*.yml" | ||
- "*.yaml" | ||
jobs: | ||
tests: | ||
name: ${{ matrix.name }} | ||
runs-on: ${{ matrix.os }} | ||
name: ${{ matrix.name }} 🤖 | ||
runs-on: ubuntu-latest | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
include: | ||
- { name: "3.9", python: "3.9", os: ubuntu-latest, tox: py39 } | ||
- { name: "3.8", python: "3.8", os: ubuntu-latest, tox: py38 } | ||
- { name: "3.7", python: "3.7", os: ubuntu-latest, tox: py37 } | ||
- { name: "Python 3.10", python: "3.10" } | ||
- { name: "Python 3.9", python: "3.9" } | ||
- { name: "Python 3.8", python: "3.8" } | ||
- { name: "Python 3.7", python: "3.7" } | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
- name: Checkout 🛎️ | ||
uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3 🐍 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: update pip | ||
|
||
- name: Update PIP ✨ | ||
run: | | ||
pip install -U wheel | ||
pip install -U setuptools | ||
python -m pip install -U pip | ||
- name: get pip cache dir | ||
id: pip-cache | ||
run: echo "::set-output name=dir::$(pip cache dir)" | ||
- name: cache pip | ||
uses: actions/cache@v2 | ||
|
||
- name: Install requirements ⚙️ | ||
run: | | ||
pip install pytest flake8 coverage hazm | ||
pip install -e . | ||
|
||
- name: Run Flake8 💫 | ||
run: flake8 sansorchi tests setup.py | ||
|
||
- name: Run Tests and collect coverage 🧪 | ||
run: | | ||
coverage run -m pytest | ||
coverage xml | ||
- name: Upload coverage to Codecov 📈 | ||
uses: codecov/codecov-action@v3 | ||
with: | ||
path: ${{ steps.pip-cache.outputs.dir }} | ||
key: pip|${{ runner.os }}|${{ matrix.python }}|${{ hashFiles('setup.py') }}|${{ hashFiles('requirements/*.txt') }} | ||
- run: pip install tox | ||
- run: pip install -e . | ||
- run: tox -e ${{ matrix.tox }} | ||
fail_ci_if_error: true | ||
token: ${{ secrets.CODECOV_TOKEN }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
@OWNER:registry=https://npm.pkg.github.com |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "sansorchi", | ||
"version": "5.0.0", | ||
"description": " Remove Persian (Farsi) Swear Words ", | ||
"main": "sansorchi/__init__.py", | ||
"directories": { | ||
"test": "test" | ||
}, | ||
"scripts": { | ||
"test": "pytest" | ||
}, | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/mmdbalkhi/Sansorchi.git" | ||
}, | ||
"keywords": [ | ||
"python", | ||
"swear", | ||
"persian", | ||
"farsi" | ||
], | ||
"author": "Komeil Parseh <ahmdparsh129@gmail.com>", | ||
"license": "GPL-3.0-or-later", | ||
"bugs": { | ||
"url": "https://github.com/mmdbalkhi/Sansorchi/issues" | ||
}, | ||
"homepage": "https://github.com/mmdbalkhi/Sansorchi#readme" | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.