Inga Ulusoy efe1851fea
Find multiple source (#251)
* feat: create space in demo notebook for multiple image search

* added multiple reference images, re #241. Separated notebooks for #248

* Update ci.yml

added nbval test for notebook

* Update ci.yml

more descriptive test name

* Update pyproject.toml

added typing_extensions

* Update pyproject.toml

typo

* Update pyproject.toml

fixing dependencies, hopefully

* Update ci.yml

fixing dependencies hopefully part 2

* Update ci.yml

typo (again)

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* Update DemoNotebook_ammico.ipynb

cleanup

* Update DemoNotebook_ammico_MultimodalSearch.ipynb

added df to save

* Update DemoNotebook_ammico_MultimodalSearch.ipynb

typo

* [pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci

* update notebook to include proper paths for sample data

* update paths in demo notebook

---------

Co-authored-by: ChristineSchulz <aq354@uni-heidelberg.de>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
2025-04-10 22:18:39 +02:00

91 строка
2.8 KiB
YAML

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
workflow_dispatch:
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-24.04,windows-latest,macos-latest]
python-version: [3.11]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install ffmpeg on macos
if: matrix.os == 'macos-latest'
run: |
brew install ffmpeg
- name: Install dependencies
run: |
pip install -e .
pip install typing_extensions==4.13.0
# python -m pip install uv
# uv pip install --system -e .
- name: Run pytest test_colors
run: |
cd ammico
python -m pytest test/test_colors.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_cropposts
run: |
cd ammico
python -m pytest test/test_cropposts.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_display
run: |
cd ammico
python -m pytest test/test_display.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_faces
run: |
cd ammico
python -m pytest test/test_faces.py -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_multimodal_search
run: |
cd ammico
python -m pytest test/test_multimodal_search.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
- name: Clear cache ubuntu 1
if: matrix.os == 'ubuntu-22.04'
run: |
rm -rf ~/.cache/*
- name: Run pytest test_summary
run: |
cd ammico
python -m pytest test/test_summary.py -m "not long" -svv --cov=. --cov-report=xml --cov-append
- name: Clear cache ubuntu 2
if: matrix.os == 'ubuntu-24.04'
run: |
rm -rf ~/.cache/*
- name: Run pytest test_text
run: |
cd ammico
python -m pytest test/test_text.py -m "not gcv" -svv --cov=. --cov-report=xml --cov-append
- name: Run pytest test_utils
run: |
cd ammico
python -m pytest test/test_utils.py -svv --cov=. --cov-report=xml --cov-append
- name: Run Notebook tests
run: |
cd ammico/notebooks
python -m pytest --nbval DemoNotebook_ammico_MultimodalSearch.ipynb
- name: Upload coverage
if: matrix.os == 'ubuntu-24.04' && matrix.python-version == '3.11'
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
fail_ci_if_error: false
files: ammico/coverage.xml
verbose: true