forked from mindee/doctr
-
Notifications
You must be signed in to change notification settings - Fork 1
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
212 changed files
with
5,017 additions
and
4,489 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,5 +1,5 @@ | ||
[flake8] | ||
max-line-length = 120 | ||
ignore = E402, E265, F403, W503, W504, E731 | ||
ignore = E203, E402, E265, F403, W503, W504, E731 | ||
exclude = .git, venv*, build | ||
per-file-ignores = **/__init__.py:F401 |
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,14 @@ | ||
version: 2 | ||
updates: | ||
- package-ecosystem: "pip" | ||
directory: "/" | ||
open-pull-requests-limit: 10 | ||
target-branch: "main" | ||
labels: ["topic: build"] | ||
schedule: | ||
interval: weekly | ||
day: sunday | ||
reviewers: | ||
- "frgfm" | ||
- "charlesmindee" | ||
- "felixdittrich92" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,20 +17,32 @@ jobs: | |
run: docker run doctr-tf-py3.8-slim python -c 'import doctr' | ||
|
||
pytest-api: | ||
runs-on: ubuntu-latest | ||
env: | ||
# Port for web container | ||
# See docker-compose.yml | ||
PORT: 8002 | ||
runs-on: ${{ matrix.os }} | ||
strategy: | ||
matrix: | ||
os: [ubuntu-latest] | ||
python: [3.8] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
architecture: x64 | ||
- name: Install poetry | ||
uses: abatilo/[email protected] | ||
with: | ||
poetry-version: 1.1.13 | ||
- name: Lock the requirements | ||
run: | | ||
cd api | ||
make lock | ||
- name: Build & run docker | ||
run: docker-compose up -d --build | ||
run: cd api && docker-compose up -d --build | ||
- name: Ping server | ||
run: wget --spider --tries=12 http://localhost:$PORT/docs | ||
- name: Install dependencies in docker | ||
run: | | ||
docker-compose exec -T web python -m pip install --upgrade pip | ||
docker-compose exec -T web pip install -r requirements-dev.txt | ||
run: wget --spider --tries=12 http://localhost:8080/docs | ||
- name: Run docker test | ||
run: docker-compose exec -T web pytest . | ||
run: | | ||
docker cp api/requirements-dev.txt api_web_1:/app/requirements-dev.txt | ||
docker-compose -f api/docker-compose.yml exec -T web pip install -r requirements-dev.txt | ||
docker cp api/tests api_web_1:/app/tests | ||
docker-compose -f api/docker-compose.yml exec -T web pytest tests/ |
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
Oops, something went wrong.