wovensnake 0.3.4

A high-performance Python package manager built with Rust.
Documentation
name: Development CI

on:
  workflow_dispatch: # disabled: triggers removed (security scanning now handled by GitHub Advanced Security)

env:
  CARGO_TERM_COLOR: always
  RUST_BACKTRACE: 1

# Save minutes by cancelling obsolete runs
concurrency:
  group: ${{ github.workflow }}-${{ github.ref }}
  cancel-in-progress: true

jobs:
  # --------------------------------------------------------------------------
  # 1. QUALITY GATES (Linting & Formatting)
  # --------------------------------------------------------------------------
  quality:
    name: Code Quality
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v4

      - name: Install Rust Toolchain
        uses: dtolnay/rust-toolchain@v1
        with:
          toolchain: ${{ inputs.toolchain || 'stable' }}
          components: rustfmt, clippy

      - name: Check Formatting
        run: cargo fmt -- --check

      - name: Clippy Linting
        run: cargo clippy -- -D warnings

  # --------------------------------------------------------------------------
  # 2. TEST SUITE (Windows-only for v0.2.x)
  # --------------------------------------------------------------------------
  test:
    name: Test Suite (Windows)
    needs: quality
    runs-on: windows-latest
    steps:
      - uses: actions/checkout@v4

      - name: Set up Python
        uses: actions/setup-python@v5
        with:
          python-version: "3.12"

      - name: Install Rust Toolchain
        uses: dtolnay/rust-toolchain@v1
        with:
          toolchain: ${{ inputs.toolchain || 'stable' }}

      - name: Cache dependencies
        uses: actions/cache@v4
        with:
          path: |
            ~/.cargo/registry
            ~/.cargo/git
            target
          key: ${{ runner.os }}-cargo-${{ hashFiles('**/Cargo.lock') }}
          restore-keys: |
            ${{ runner.os }}-cargo-

      - name: Run Tests
        run: cargo test --verbose