Skip to content

Fix Windows CI error. Add Loading u2net.onnx data file to find background... msg #141

Fix Windows CI error. Add Loading u2net.onnx data file to find background... msg

Fix Windows CI error. Add Loading u2net.onnx data file to find background... msg #141

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Pytest
on:
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ ubuntu-latest, macos-latest ]
python-version: [ "3.13" ]
name: Python ${{ matrix.python-version }} on ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest-cov click httpx loguru piexif pillow pillow-heif tqdm numpy opencv-python packaging onnxruntime rembg
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest --cov-report=term --cov=batch_img tests