Skip to content

Model Instancing to reduce memory footprint #855

Model Instancing to reduce memory footprint

Model Instancing to reduce memory footprint #855

name: Run unit tests for user-side functions
on:
push:
branches:
- main
- develop
pull_request:
branches:
- "*"
jobs:
unit_tests:
runs-on: ubuntu-latest
container: precice/precice:nightly
steps:
- uses: actions/checkout@v6
with:
path: micro-manager
- name: Install dependencies
run: |
apt-get -qq update
apt-get -qq install python3-dev python3-venv git pkg-config
- name: Create a virtual environment and install Micro Manager in it
timeout-minutes: 6
working-directory: micro-manager
run: |
python3 -m venv .venv
. .venv/bin/activate
pip install .
- name: Run micro_manager unit test
working-directory: micro-manager
run: |
. .venv/bin/activate
pip uninstall -y pyprecice
cd tests/unit
python3 -m unittest test_micro_manager.py
- name: Install Micro Manager and run interpolation unit test
working-directory: micro-manager
run: |
. .venv/bin/activate
pip install .[sklearn]
pip uninstall -y pyprecice
cd tests/unit
python3 -m unittest test_interpolation.py
- name: Install Micro Manager and run micro simulation crash unit test
working-directory: micro-manager
run: |
. .venv/bin/activate
cd tests/unit
python3 -m unittest test_micro_simulation_crash_handling.py
- name: Install Micro Manager and run HDF5 read and write unit tests
working-directory: micro-manager/
run: |
. .venv/bin/activate
pip install .[snapshot]
pip uninstall -y pyprecice
cd tests/unit
python3 -m unittest test_hdf5_functionality.py
- name: Install Micro Manager and run snapshot_computation unit tests
working-directory: micro-manager
run: |
. .venv/bin/activate
cd tests/unit
python3 -m unittest test_snapshot_computation.py