pyplanetarium 0.2.1

Python bindings for Rust Planetarium rendering library
Documentation
name: Python checks

on:
  push:
    branches: [ main ]
  pull_request:
    branches: [ main ]

jobs:
  tests:
    name: Tox tests
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
    steps:
    - uses: actions/checkout@v3
    - name: Setup Python
      uses: actions/setup-python@v3
      with:
        python-version: ${{ matrix.python-version }}
    - name: Install tox and pytest
      run: pip install tox
    - name: Run tox
      run: tox
  typechecks:
    name: Mypy (pylint) test checks
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v3
    - name: Run mypy and pylint checks
      run: |
        python3 -m venv mypy_venv
        . mypy_venv/bin/activate
        pip install maturin mypy pylint
        maturin develop
        python -m mypy tests
        python -m pylint tests