зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 13:06:04 +02:00
* fix typos * add buttons for google colab everywhere * update readme, separate out FAQ * add privacy disclosure statement * do not install using uv * update docs notebook * explicit install of libopenblas * explicit install of libopenblas * explicit install of libopenblas * try to get scipy installed using uv * use ubuntu 24.04 * go back to pip * try with scipy only * try with a few others * use hatchling * wording changes, install all requirements * fix offending spacy version * run all tests * include faq in documentation, fix link
85 строки
2.6 KiB
YAML
85 строки
2.6 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 .
|
|
# 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: 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
|