Skip to content

Change from aioredis to hiredis, update to pydantic v2 #22

Change from aioredis to hiredis, update to pydantic v2

Change from aioredis to hiredis, update to pydantic v2 #22

Workflow file for this run

name: Lint & Test
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8, 3.9, 3.10.4, 3.11]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install system dependencies
run: |
sudo apt-get install gcc gfortran libopenblas-dev liblapack-dev cython3
python -m pip install --upgrade pip
pip install poetry
- name: Install dependencies
run: |
poetry install
- name: Run linting checks
run: |
make test-lint
- name: Run unit tests
run: |
make test
- name: Generate Test Coverage
run: |
make coverage
poetry run coverage html --skip-covered --skip-empty
- name: Fail If Coverage is Less Than 80%
run: poetry run coverage report --fail-under=80
- name: Upload HTML report if check failed.
uses: actions/upload-artifact@v3
with:
name: html-report
path: htmlcov
if: ${{ failure() }}