-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Relaxed mode with "ignore_errors" option (#201)
* Exlcude one more large file from tests as it gets timeout * Add ignore_errors option on CLI * Bump version: 3.0.0-alpha.5 → 3.0.0-alpha.29 * add new gitactions workflow to publish on test.pypi * try publish on test.pypi attempt #2 * Bump version: 3.0.0-alpha.29 → 3.0.0-alpha.6 * undo changes in workflow made for test.pypi publish * Python module: Add ignore_errors option in class methods * Python module: Add ignore_errors in calling class methods from CLI * JSON/dict format: remove slash(\) from value of closing
- Loading branch information
1 parent
f8d3b49
commit a08b2ae
Showing
10 changed files
with
165 additions
and
17 deletions.
There are no files selected for viewing
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
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,64 @@ | ||
name: Test.PyPI Publish | ||
|
||
on: | ||
# push: # need to use this temporarly to be able to publish | ||
workflow_dispatch: # works only on default branch | ||
|
||
jobs: | ||
build_wheels: | ||
name: Build wheels on ${{ matrix.os }} | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-20.04, windows-2019, macos-11] | ||
# os: [ubuntu-20.04] | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Setup node and npm | ||
uses: actions/setup-node@v2 | ||
with: | ||
node-version: 14 | ||
- name: Build the tree-sitter parser | ||
run: | | ||
cd tree-sitter-usfm3 | ||
npm install . | ||
./node_modules/.bin/tree-sitter generate | ||
- name: Build wheels | ||
uses: pypa/cibuildwheel@v2.9.0 | ||
env: | ||
CIBW_BEFORE_BUILD: > | ||
python -m pip install tree-sitter==0.20.0 && | ||
python python-usfm-parser/src/grammar_rebuild.py tree-sitter-usfm3 python-usfm-parser/src/usfm_grammar/my-languages.so | ||
with: | ||
package-dir: python-usfm-parser | ||
output-dir: python-usfm-parser/dist | ||
config-file: "python-usfm-parser/pyproject.toml" | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
path: python-usfm-parser/dist/*.whl | ||
|
||
publish_to_pypi: | ||
needs: [build_wheels] | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@master | ||
- name: Set up Python 3.10 | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: "3.10" | ||
- uses: actions/download-artifact@v3 | ||
with: | ||
name: artifact | ||
path: python-usfm-parser/dist/ | ||
|
||
- name: Publish distribution 📦 to Test PyPI | ||
uses: pypa/gh-action-pypi-publish@release/v1 | ||
with: | ||
user: __token__ | ||
password: ${{ secrets.PUBLISH_ON_TEST_PYPI }} | ||
repository_url: https://test.pypi.org/legacy/ | ||
packages_dir: python-usfm-parser/dist/ |
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
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
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
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