-
Notifications
You must be signed in to change notification settings - Fork 25
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
379 additions
and
45 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file was autogenerated by maturin v1.6.0 using: | ||
# maturin generate-ci github -o ../../.github/workflows/release_pyton_pytest.yml --pytest | ||
# | ||
# | ||
# Then adapted to the project | ||
# | ||
name: CI | ||
|
@@ -38,7 +38,7 @@ jobs: | |
python-version: '3.8' | ||
|
||
# On linux we don't use graalvm/[email protected] action to install graalvm because it will install it | ||
# on the runner machine and on linux the build will happen inside a manylinux docker. | ||
# on the runner machine and on linux the build will happen inside a manylinux docker. | ||
# Instead, we use a script to install graalvm inside the docker container | ||
# the script is launched by setting the before-script-linux config option of the maturin action | ||
- name: Build wheels | ||
|
@@ -60,7 +60,7 @@ jobs: | |
with: | ||
name: wheels-linux-${{ matrix.platform.target }} | ||
path: bindings/extractous-python/dist | ||
|
||
- name: pytest | ||
if: ${{ startsWith(matrix.platform.target, 'x86_64') }} | ||
shell: bash | ||
|
@@ -70,7 +70,7 @@ jobs: | |
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install extractous --find-links bindings/extractous-python/dist --no-index --force-reinstall | ||
pip install pytest scikit-learn | ||
pip install pytest scikit-learn lxml | ||
cd bindings/extractous-python | ||
pytest -s | ||
|
@@ -85,7 +85,7 @@ jobs: | |
apt-get update | ||
apt-get install tesseract-ocr tesseract-ocr-deu tesseract-ocr-ara | ||
apt-get install -y --no-install-recommends python3 python3-pip | ||
pip3 install -U pip pytest scikit-learn | ||
pip3 install -U pip pytest scikit-learn lxml | ||
run: | | ||
set -e | ||
pip3 install extractous --find-links bindings/extractous-python/dist --no-index --force-reinstall | ||
|
@@ -129,7 +129,7 @@ jobs: | |
python -m venv .venv | ||
.venv\Scripts\activate.bat | ||
pip install extractous --find-links bindings/extractous-python/dist --no-index --force-reinstall | ||
pip install pytest scikit-learn | ||
pip install pytest scikit-learn lxml | ||
cd bindings\extractous-python | ||
pytest -s . | ||
|
@@ -186,7 +186,7 @@ jobs: | |
python3 -m venv .venv | ||
source .venv/bin/activate | ||
pip install extractous --find-links bindings/extractous-python/dist --no-index --force-reinstall | ||
pip install pytest scikit-learn | ||
pip install pytest scikit-learn lxml | ||
cd bindings/extractous-python | ||
pytest -s | ||
|
@@ -206,7 +206,7 @@ jobs: | |
name: wheels-sdist | ||
path: bindings/extractous-python/dist | ||
|
||
# Follows the guide on https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
# Follows the guide on https://packaging.python.org/en/latest/guides/publishing-package-distribution-releases-using-github-actions-ci-cd-workflows/ | ||
# We use 2 actions one to publish on PyPi on tag pushes to main brnach and the other to publish on TestPyPi on any push | ||
publish-to-testpypi: | ||
name: Publish to TestPyPI | ||
|
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
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
Oops, something went wrong.