name: CI on: push: branches: - main pull_request: jobs: validate: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v4 - name: Install Rust if needed shell: bash run: | if ! command -v cargo >/dev/null 2>&1; then curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y --default-toolchain stable echo "$HOME/.cargo/bin" >> "$GITHUB_PATH" fi - name: Show Rust versions shell: bash run: | rustc --version cargo --version - name: Show Python version shell: bash run: python3 --version - name: Run precommit checks shell: bash run: scripts/precommit-check.sh