28 lines
687 B
YAML
28 lines
687 B
YAML
name: Python package build
|
|
|
|
on:
|
|
push:
|
|
branches: [ "master" ]
|
|
pull_request:
|
|
branches: [ "master" ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v6
|
|
- name: Set up Python
|
|
uses: actions/setup-python@v6
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install uv
|
|
run: |
|
|
curl -LsSf https://astral.sh/uv/install.sh | sh
|
|
echo "$HOME/.cargo/bin" >> $GITHUB_PATH
|
|
- name: Create virtual environment
|
|
run: uv venv
|
|
- name: Install build dependencies
|
|
run: |
|
|
uv pip install build ".[torch,flax]"
|
|
- name: Build package
|
|
run: uv run python -m build |