Skip to content

CI

CI #196

Workflow file for this run

name: CI
on:
push:
pull_request:
schedule:
# run every Sunday (0th day) at 12:00 UTC (syntax: m h * * day)
- cron: '0 12 * * 0'
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', '3.11', '3.12']
steps:
- 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
pip install -r requirements.txt
pip install pytest-cov codecov
pip install .
- name: Test with pytest
run: |
pytest --cov=statmorph
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3