Files
raptorbt/.github/workflows/ci.yml
T
porcelaincode e6476b771f Prepare package for PyPI publishing
- Add MIT LICENSE file
- Enhance pyproject.toml with full metadata
- Add GitHub Actions workflows for CI and release
2026-01-28 15:07:07 +05:30

49 lines
957 B
YAML

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
env:
CARGO_TERM_COLOR: always
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Rust
uses: dtolnay/rust-action@stable
- name: Run Rust tests
run: cargo test --all-features
- name: Run Rust clippy
run: cargo clippy --all-features -- -D warnings
- name: Check Rust formatting
run: cargo fmt --check
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Build wheel
uses: PyO3/maturin-action@v1
with:
args: --release --out dist
- name: Install and test import
run: |
pip install dist/*.whl
python -c "import raptorbt; print(raptorbt.__version__)"