Skip to content

Back-propagate MIP-resolved specified states to system_state on SIA #22

Back-propagate MIP-resolved specified states to system_state on SIA

Back-propagate MIP-resolved specified states to system_state on SIA #22

Workflow file for this run

name: Build
on:
push:
branches: [develop, main, master]
tags:
- "v*"
pull_request:
branches: [develop, main, master]
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Fetch all history for proper versioning
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install 3.12
- name: Build package
run: uv build
- name: Check distribution
run: uvx twine check dist/*
- name: Upload artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/
test-install:
needs: build
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- name: Set up uv
uses: astral-sh/setup-uv@v5
- name: Set up Python
run: uv python install 3.12
- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: dist
path: dist/
- name: Create venv and install wheel
shell: bash
run: |
uv venv
uv pip install dist/*.whl
- name: Test import
shell: bash
run: |
if [ -f ".venv/bin/python" ]; then
.venv/bin/python -c "import pyphi; print('PyPhi imported successfully')"
else
.venv/Scripts/python -c "import pyphi; print('PyPhi imported successfully')"
fi