Skip to content

Add back functionality to use linear alpha function. Update CI workflow #230

Add back functionality to use linear alpha function. Update CI workflow

Add back functionality to use linear alpha function. Update CI workflow #230

Workflow file for this run

name: pytest
on:
push:
branches: [ master ]
paths:
- msibi/**
- environment-dev.yml
- .github/workflows/pytest.yml
pull_request:
branches: [ master ]
paths:
- msibi/**
- environment-dev.yml
- .github/workflows/pytest.yml
# Allows workflow to be manually triggered
workflow_dispatch:
jobs:
test:
if: github.event.pull_request.draft == false
name: MSIBI Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [macOS-latest, ubuntu-latest]
python-version: [3.10, 3.11, 3.12]
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Build environment
uses: conda-incubator/setup-miniconda@v2
with:
environment-file: environment-dev.yml
miniforge-variant: Mambaforge
miniforge-version: 23.11.0-0
use-mamba: true
- name: Install package
shell: bash -l {0}
run: pip install .
- name: Run pytest with coverage report
shell: bash -l {0}
run: python -m pytest -rs -v --cov=./ --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}
file: ./coverage.xml