Skip to content

[v0.1.13] 2025-12-25 #101

[v0.1.13] 2025-12-25

[v0.1.13] 2025-12-25 #101

Workflow file for this run

name: pytest-linux
on:
push:
branches: [ master, main ]
pull_request:
branches: [ master, main ]
jobs:
build:
runs-on: ubuntu-24.04
steps:
- name: Checkout PyHelios
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install Helios dependencies
run: |
sudo apt-get update
sudo apt-get install -y libomp-dev libx11-dev xorg-dev libgl1-mesa-dev libglu1-mesa-dev libxrandr-dev python3-dev pybind11-dev
- name: Install build dependencies only
run: |
python -m pip install --upgrade pip
- name: Build native libraries
run: |
python build_scripts/build_helios.py --buildmode release --nogpu --verbose
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: linux-build-artifacts
path: |
pyhelios_build/build/
pyhelios/plugins/*.so
pyhelios/plugins/*.dylib
retention-days: 1
test:
needs: build
runs-on: ubuntu-24.04
steps:
- name: Checkout PyHelios
uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Download build artifacts
uses: actions/download-artifact@v4
with:
name: linux-build-artifacts
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -e .[dev]
- name: Run pytest
run: |
pytest -v