Skip to content

feat: finalize A.YLM v1.0.0 - simplified CI, removed PyPI, added CLI #23

feat: finalize A.YLM v1.0.0 - simplified CI, removed PyPI, added CLI

feat: finalize A.YLM v1.0.0 - simplified CI, removed PyPI, added CLI #23

Workflow file for this run

name: CI
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
test:
runs-on: ubuntu-latest
timeout-minutes: 30
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Cache pip dependencies
uses: actions/cache@v3
with:
path: |
~/.cache/pip
${{ env.pythonLocation }}/lib/python*/site-packages
key: ${{ runner.os }}-python${{ matrix.python-version }}-pip-${{ hashFiles('**/requirements.txt', '**/pyproject.toml') }}
restore-keys: |
${{ runner.os }}-python${{ matrix.python-version }}-pip-
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -e ml-sharp/
- name: Create required directories
run: |
mkdir -p inputs/input_images
mkdir -p outputs/output_gaussians
mkdir -p models
- name: Basic syntax check
run: |
# Check Python syntax
python -m py_compile scripts/preload_sharp_model.py || echo "Syntax check failed"
python -m py_compile scripts/pointcloud_voxelizer.py || echo "Syntax check failed"
python -m py_compile scripts/coordinate_utils.py || echo "Syntax check failed"
- name: Test script help
run: |
# Basic help test
python scripts/preload_sharp_model.py --help || echo "Help test failed"
python scripts/pointcloud_voxelizer.py --help || echo "Help test failed"
build:
runs-on: ubuntu-latest
needs: test
steps:
- uses: actions/checkout@v4
with:
submodules: recursive
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.9"
- name: Install build dependencies
run: |
python -m pip install --upgrade pip
pip install build twine
- name: Build package
run: python -m build
- name: Check package
run: |
python -m twine check dist/*
- name: Upload build artifacts
uses: actions/upload-artifact@v4
with:
name: dist
path: dist/