Skip to content

capture exception before raising IndicatorColumnError (#49) #237

capture exception before raising IndicatorColumnError (#49)

capture exception before raising IndicatorColumnError (#49) #237

Workflow file for this run

name: Unit tests
on:
push:
branches: ['**']
pull_request:
branches: ['**']
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
python-version: [3.7, 3.8]
services:
postgres:
image: postgres
env:
POSTGRES_DB: neurobooth
POSTGRES_USER: neuroboother
POSTGRES_PASSWORD: neuroboothrocks
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
# Maps tcp port 5432 on service container to the host
- 5432:5432
steps:
- uses: actions/checkout@v2
- uses: conda-incubator/setup-miniconda@v2
with:
activate-environment: test
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash -el {0}
# XXX: for some reason pandas does not install numpy automatically
run: |
python -m pip install --upgrade pip
conda install pandas
pip install pytest pytest-cov
- name: Install neurobooth-terra
shell: bash -el {0}
run: |
python setup.py --verbose install
- name: Test with pytest
shell: bash -el {0}
run: |
python -m py.test . --cov=neurobooth_terra neurobooth_terra/tests/ --cov-report=xml