Skip to content

Implementation of events with signature event(t, y, yp). #205

Implementation of events with signature event(t, y, yp).

Implementation of events with signature event(t, y, yp). #205

Workflow file for this run

name: Build and test
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
build:
name: Build project
runs-on: ${{ matrix.os }}
strategy:
matrix:
# os: [ubuntu-latest, windows-latest, macos-latest]
os: [ubuntu-latest]
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.10"
cache: "pip" # caching pip dependencies
- name: Install dependencies and scipy_dae
run: pip install .
- name: Install test dependencies
run: pip install pytest pytest-cov
- name: Test and coverage report with pytest-cov
run: pytest --cov=scipy_dae --cov-report=term --cov-report=lcov --cov-report=xml
- name: Run tests and collect coverage
run: pytest --cov app ${{ env.CODECOV_ATS_TESTS }}
- name: Upload coverage data
uses: actions/upload-artifact@v4
with:
# see https://github.com/actions/upload-artifact/issues/480
name: covdata-${{ matrix.os }}
path: coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/[email protected]
with:
token: ${{ secrets.CODECOV_TOKEN }}