Skip to content

Merge pull request #1 from IASolutionOrg/ci-test #3

Merge pull request #1 from IASolutionOrg/ci-test

Merge pull request #1 from IASolutionOrg/ci-test #3

Workflow file for this run

name: Tests
on:
push:
branches: [ main, ci-test ]
pull_request:
branches: [ main, ci-test ]
workflow_dispatch:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dependencies
uses: actions/cache@v4
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install pytest pytest-cov
python -m spacy download en_core_web_sm
- name: Run tests with coverage
run: |
pytest tests/ -v --cov=src/cortex --cov-report=xml --cov-report=term