Skip to content

fix: cast lunar mascon rotation matrix to float64 #4

fix: cast lunar mascon rotation matrix to float64

fix: cast lunar mascon rotation matrix to float64 #4

Workflow file for this run

name: Tests
on:
push:
branches: ["**"]
pull_request:
branches: [main]
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- name: Install ruff
run: pip install "ruff>=0.4"
- name: Check lint
run: ruff check .
- name: Check format
run: ruff format --check .
typecheck:
name: Type check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run pyright
run: pyright src
test:
name: Test (Python ${{ matrix.python-version }})
runs-on: ubuntu-latest
needs: [lint, typecheck]
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Core test suite
run: python -m pytest tests --ignore=tests/test_validation.py --cov=cislunar --cov-report=xml --cov-report=term-missing
- name: Validation tests
run: python -m pytest tests/test_validation.py
- name: Upload coverage
if: matrix.python-version == '3.12'
uses: actions/upload-artifact@v7
with:
name: coverage-report
path: coverage.xml
benchmark:
name: Physics benchmarks
runs-on: ubuntu-latest
needs: test
if: github.ref == 'refs/heads/main'
steps:
- uses: actions/checkout@v6
- uses: actions/setup-python@v6
with:
python-version: "3.12"
cache: pip
- name: Install dependencies
run: pip install -e ".[dev]"
- name: Run benchmarks
run: python -m cislunar.validation.physics_benchmark --extended