Skip to content

LoopStructural 1.7

LoopStructural 1.7 #5

Workflow file for this run

name: "📦 Workspace packages"
# Stage 2 of ROADMAP.md (outcome 2): loop_common/loop_interpolation live under
# packages/ as independent uv-workspace members so the interpolation code is
# usable outside the LoopStructural framework. This job installs and tests
# them on their own, separately from the root LoopStructural test suite in
# tester.yml, so each half can fail/soak independently.
on:
push:
branches:
- master
paths:
- 'packages/**'
- .github/workflows/packages.yml
pull_request:
branches:
- master
paths:
- 'packages/**'
- .github/workflows/packages.yml
workflow_dispatch:
permissions:
contents: read
jobs:
packages-test:
name: ${{ matrix.package }} (python ${{ matrix.python-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
package: [loop_common, loop_interpolation]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: "latest"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install package with test extras
run: |
uv sync --package ${{ matrix.package }} --extra tests
- name: pytest
run: |
pytest packages/${{ matrix.package }}/tests