Skip to content

Initial Release

Initial Release #10

Workflow file for this run

name: Code Checks
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-22.04, ubuntu-24.04]
python-version: ['3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
- uses: prefix-dev/setup-pixi@v0.8.8
with:
pixi-version: v0.47.0
cache: true
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Restore typings cache
uses: actions/cache@v4
id: typings-cache
with:
path: typings
key: typings-${{ matrix.os }}-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}
- name: Generate stubs if cache miss
if: steps.typings-cache.outputs.cache-hit != 'true'
run: pixi run -e dev pybind11-stubgen mujoco -o typings/
- name: Run Ruff Linter
run: pixi run -e dev ruff check judo/ tests/ --output-format=github
- name: Run Ruff Formatter
run: pixi run -e dev ruff format judo/ tests/ --diff
- name: Run Pyright
run: pixi run -e dev pyright
- name: Test with pytest
run: pixi run -e dev pytest -rsx