Skip to content

Merge branch 'main' of github-indhi:LunarPy-Labs/LunarPhaseORM #14

Merge branch 'main' of github-indhi:LunarPy-Labs/LunarPhaseORM

Merge branch 'main' of github-indhi:LunarPy-Labs/LunarPhaseORM #14

Workflow file for this run

name: CI Test Suite
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
name: Run pytest & Rust tests on ${{ matrix.os }}
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v4
- name: Install Rust toolchain
uses: dtolnay/rust-toolchain@stable
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies & maturin
run: |
python -m pip install --upgrade pip
pip install maturin pytest pytest-cov aiosqlite pydantic
- name: Build Rust extension
run: maturin develop
- name: Run pytest test suite
run: pytest --cov=lunarphase --cov-report=term-missing