diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b7e8abc..8298978 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -3,12 +3,20 @@ name: Tests on: push: branches: - - main + - main pull_request: jobs: test: - runs-on: ubuntu-latest + runs-on: ${{ matrix.os }} + + strategy: + fail-fast: false + matrix: + os: + - ubuntu-latest + - macos-latest + - windows-latest steps: - name: Check out repository @@ -28,4 +36,12 @@ jobs: - name: Run tests run: | - python -m pytest \ No newline at end of file + python -m pytest --cov=petab_sciml --cov-report=xml --cov-report=term-missing + + - name: Coverage + uses: codecov/codecov-action@v6 + with: + token: ${{ secrets.CODECOV_TOKEN }} + files: ./coverage.xml + if: matrix.os == 'ubuntu-latest' + \ No newline at end of file diff --git a/README.md b/README.md index 4f2d43f..9ad8fc0 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,15 @@ # PEtab SciML *A data format for scientific machine learning* +[![Build Status](https://github.com/PEtab-dev/petab_sciml/actions/workflows/ci.yml/badge.svg?branch=main)](https://github.com/PEtab-dev/petab_sciml/actions/workflows/ci.yml?query=branch%3Amain) +[![codecov](https://codecov.io/gh/PEtab-dev/petab_sciml/graph/badge.svg?token=ki1YcdIHII)](https://codecov.io/gh/PEtab-dev/petab_sciml) + PEtab SciML is a table-based data format for creating training (parameter estimation) problems for **scientific machine learning (SciML)** models that combine machine learning and mechanistic ordinary differential equation (ODE) models. > [!WARNING] -> **Beta Disclaimer**: this software is under active development and may contain bugs or instabilities. The PEtab SciML format is finalised and support for it has been implemented in PEtab importers, though not yet released. Documentation and utility functions are currently being added. +> **Beta Disclaimer**: this software is under active development and may contain bugs or instabilities. The PEtab SciML format is finalised and support for it has been implemented in PEtab importers, though not yet released. Documentation and utility functions are currently being added. ## Highlights diff --git a/pyproject.toml b/pyproject.toml index 0ee94ac..cad7f4a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -48,6 +48,7 @@ doc = [ ] test = [ "pytest", + "pytest-cov", "torch" ] torch = [