зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-30 05:26:05 +02:00
* maintain: remove text analysis with transformers and topic analysis * maintain: remove text analysis from display function * maintain: remove summary module (VQA) * maintain: remove summary module (VQA) * maintain: remove cropposts, update pyproject.toml * maintain: removed obsolete functionality * maintain: update CI workflow * maintain: run all tests together in CI, remove version restrictions * maintain: fix tf version for deepface/retinaface restrictions * mainatin: remove more obsolete files, restructure pyproject.toml * fix: do not run gcv tests on CI * CI: test compatibility with Python versions * maintain+bug: fix python version due to deepface, fix deepface memory leak * maintain: switch to ruff * fix: correct remaining ruff issues, is_interactive probably obsolete..? * CI: bump actions and python versions, run checks on all os * maintain&fix: blis do not compile from source, use uv for installs, update dockerfile * fix: uv install system-wide * fix: try with only pip to force blis binary install * fix: try now with mixed pip and uv for better performance while preserving blis binary * fix: revert to pip since uv installs different numpy version, unfortunately * fix: other python version
44 строки
1.1 KiB
YAML
44 строки
1.1 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-latest, windows-latest, macos-latest]
|
|
python-version: ['3.10', '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 dependencies
|
|
run: |
|
|
pip install spacy --no-binary blis # do not compile blis from source
|
|
pip install -e .[dev]
|
|
- name: Run pytest
|
|
run: |
|
|
cd ammico
|
|
python -m pytest -svv -m "not gcv" --cov=. --cov-report=xml
|
|
- name: Upload coverage
|
|
if: matrix.os == 'ubuntu-latest' && 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
|