• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

rero / rero-invenio-thumbnails / 21180127547
96%

Build:
DEFAULT BRANCH: master
Ran 20 Jan 2026 04:57PM UTC
Jobs 1
Files 19
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

20 Jan 2026 04:57PM UTC coverage: 94.13%. Remained the same
21180127547

push

github

rerowep
feat(initial): initial commit - RERO Invenio Thumbnails module

Complete implementation of a multi-provider thumbnail retrieval system for RERO Invenio.

Implemented Features:
- Multi-provider architecture with chainable providers (Amazon, Google Books, Google API, Open Library, Files)
- Local file storage provider (FilesProvider) with configurable directory
- HTTP endpoint for serving thumbnails via Flask blueprint
- Comprehensive provider implementations with exception handling
- Full test suite with 50+ test cases across all providers
- Proper Invenio extension initialization and configuration
- Retry logic with exponential backoff for HTTP requests

Providers:
- AmazonProvider: ISBN-13 to ISBN-10 conversion, 14 country codes, 5 image sizes
- GoogleApiProvider: Query Google Books API by ISBN
- GoogleBooksProvider: JSONP-based Google Books preview endpoint
- OpenLibraryProvider: Open Library Covers API integration
- FilesProvider: Local file storage with .jpg/.jpeg/.png support

Configuration:
- RERO_INVENIO_THUMBNAILS_PROVIDERS: List of active providers
- RERO_INVENIO_THUMBNAILS_FILES_DIR: Local directory for thumbnails
- RERO_INVENIO_THUMBNAILS_CACHE: Redis cache configuration

Testing:
- Comprehensive test coverage for all providers
- HTTP endpoint testing with real file operations
- API function testing with mocked providers
- Shared pytest fixtures in conftest.py

Co-Authored-by: Peter Weber <peter.weber@rero.ch>

449 of 477 new or added lines in 12 files covered. (94.13%)

449 of 477 relevant lines covered (94.13%)

0.94 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
96.88
0.0% rero_invenio_thumbnails/modules/google_books/api.py
2
85.71
0.0% rero_invenio_thumbnails/__init__.py
3
90.91
0.0% rero_invenio_thumbnails/modules/bnf/api.py
3
91.18
0.0% rero_invenio_thumbnails/modules/files/api.py
4
94.29
0.0% rero_invenio_thumbnails/modules/utils.py
15
90.68
0.0% rero_invenio_thumbnails/api.py
Jobs
ID Job ID Ran Files Coverage
1 21180127547.1 20 Jan 2026 04:57PM UTC 19
94.13
GitHub Action Run
Source Files on build 21180127547
  • Tree
  • List 19
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #21180127547
  • c3b35c2a on github
  • Prev Build on master (#21177766177)
  • Next Build on master (#21203749943)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc