зеркало из
https://github.com/ssciwr/AMMICO.git
synced 2025-10-29 21:16:06 +02:00
49 строки
1.6 KiB
YAML
49 строки
1.6 KiB
YAML
name: CI
|
|
|
|
|
|
on:
|
|
push:
|
|
branches: [ main ]
|
|
pull_request:
|
|
branches: [ main ]
|
|
workflow_dispatch:
|
|
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
matrix:
|
|
os: [ubuntu-22.04]
|
|
python-version: [3.9]
|
|
steps:
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
python -m pip install -e .
|
|
python -m spacy download en_core_web_md
|
|
python -m textblob.download_corpora
|
|
- name: Run pytest
|
|
run: |
|
|
cd misinformation
|
|
python -m pytest -vv test/test_cropposts.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_display.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_faces.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_multimodal_search.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_objects.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_summary.py --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_text.py -m "not gcv" --cov=. --cov-report=xml
|
|
python -m pytest -vv test/test_utils.py --cov=. --cov-report=xml
|
|
- name: Upload coverage
|
|
if: matrix.os == 'ubuntu-22.04' && matrix.python-version == '3.9'
|
|
uses: codecov/codecov-action@v3
|
|
with:
|
|
fail_ci_if_error: true
|
|
files: misinformation/coverage.xml
|