Skip to content

closes #47, flowsheet solve supports nodes of type PartitionOperation… #114

closes #47, flowsheet solve supports nodes of type PartitionOperation…

closes #47, flowsheet solve supports nodes of type PartitionOperation… #114

name: "Run Tests with Poetry"
on:
push:
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ "3.9", "3.10", "3.11", "3.12" ]
steps:
- uses: actions/checkout@v3
- name: Setup headless display
uses: pyvista/setup-headless-display-action@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Poetry
run: |
pip install poetry==1.5.0
- name: Load cached venv
id: cached-poetry-dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pypoetry/virtualenvs
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
${{ runner.os }}-poetry-
- name: Install dependencies
# if: steps.cached-poetry-dependencies.outputs.cache-hit != 'true'
run: |
poetry install --all-extras --no-interaction
- name: Test with pytest
run: |
poetry run pytest
env:
ON_CI_CD: 'true'