-
-
Notifications
You must be signed in to change notification settings - Fork 603
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
99 changed files
with
7,433 additions
and
7,582 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 |
---|---|---|
|
@@ -7,3 +7,5 @@ __pycache__ | |
ocrs | ||
models/* | ||
test/testdata/bboxes | ||
/venv | ||
.git |
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,46 +1,47 @@ | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- '.github/workflows/ci.yml' | ||
- 'manga_translator/**' | ||
- 'test/**' | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- '.github/workflows/ci.yml' | ||
- 'manga_translator/**' | ||
- 'test/**' | ||
- 'pyproject.toml' | ||
- 'poetry.lock' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
poetry-version: [1.6.1] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install Poetry ${{ matrix.poetry-version }} | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: ${{ matrix.poetry-version }} | ||
- name: Install dependencies | ||
run: | | ||
poetry install --only main,test | ||
- name: Lint *.py files | ||
run: | | ||
poetry run pylint $(git ls-files '*.py') | ||
# - name: Test | ||
# run: | | ||
# poetry run pytest test | ||
name: CI | ||
|
||
on: | ||
push: | ||
branches: [main] | ||
paths: | ||
- '.github/workflows/ci.yml' | ||
- 'manga_translator/**' | ||
- 'test/**' | ||
- 'pyproject.toml' | ||
- 'requirements.txt' | ||
- 'requirements-dev.txt' | ||
pull_request: | ||
branches: [main] | ||
paths: | ||
- '.github/workflows/ci.yml' | ||
- 'manga_translator/**' | ||
- 'test/**' | ||
- 'pyproject.toml' | ||
- 'requirements.txt' | ||
- 'requirements-dev.txt' | ||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11"] | ||
fail-fast: false | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v3 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
- name: Install dependencies | ||
run: | | ||
python3 -mvenv venv | ||
venv/bin/pip install -r requirements.txt -r requirements-dev.txt | ||
- name: Test | ||
run: | | ||
venv/bin/pytest test | ||
timeout-minutes: 5 | ||
- name: Lint *.py files | ||
run: | | ||
venv/bin/pylint $(git ls-files '*.py') | ||
if: always() | ||
continue-on-error: true # to not fail CI on lint errors |
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 |
---|---|---|
|
@@ -38,3 +38,9 @@ share/python-wheels/ | |
.installed.cfg | ||
*.egg | ||
MANIFEST | ||
.history | ||
/venv | ||
|
||
# Input and Output | ||
/input/ | ||
/input-translated/ |
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 |
---|---|---|
|
@@ -8,6 +8,6 @@ run-web-server: | |
--manga2eng \ | ||
--verbose \ | ||
--mode=web \ | ||
--use-cuda \ | ||
--use-gpu \ | ||
--host=0.0.0.0 \ | ||
--port=5003 |
Oops, something went wrong.