Skip to content

Update message for failed to download ebook and adds tests #10

Update message for failed to download ebook and adds tests

Update message for failed to download ebook and adds tests #10

Workflow file for this run

name: CI pipeline
on:
pull_request:
branches:
- dev
push:
branches:
- dev
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.13"
cache: pip
cache-dependency-path: |
requirements.txt
requirements-test.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt -r requirements-test.txt
- name: Run unit tests with coverage
env:
USE_REDIS: "false"
run: |
python -m pytest tests/ -v \
--cov=ubiblio \
--cov-report=term-missing \
--cov-report=xml \
--cov-report=html
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-reports
path: |
htmlcov/
coverage.xml
if-no-files-found: error