Skip to content

Update petab v2 tests #240

Update petab v2 tests

Update petab v2 tests #240

Workflow file for this run

name: CI tests
# trigger
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v3
- name: Prepare python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: ${{ runner.os }}-${{ hashFiles('**/.ci_pip_reqs.txt') }}-${{ hashFiles('**/setup.py') }}
restore-keys: |
${{ runner.os }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip wheel
pip install -e .
# uninstall, otherwise git+... installation from .ci_pip_reqs.txt won't do anything
pip uninstall -y petab
pip install -r .ci_pip_reqs.txt
- name: Check style
run: ruff check
- name: Run tests
run: pytest test