Skip to content

Improved tests and minor cleanup of Radau. #42

Improved tests and minor cleanup of Radau.

Improved tests and minor cleanup of Radau. #42

Workflow file for this run

name: Build and test
on: [push]
# on:
# pull_request:
# branches:
# - main
jobs:
build:
name: Build project
runs-on: ubuntu-latest
# runs-on: python:latest
steps:
- uses: actions/checkout@v4
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: "3.8"
cache: "pip" # caching pip dependencies
- name: Update pip
run: pip install --upgrade pip
- name: Install dependencies and pydaes (pydaes)
run: pip install -e .
- name: Install test dependencies
run: pip install pytest pytest-cov
- name: Test and coverage report with pytest-cov
run: pytest --cov=pydaes --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@v3
with:
name: covdata
path: coverage.xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}