uppsala 0.4.0

A pure Rust XML parser, DOM, namespace, XPath, and XSD validation library
Documentation
name: CI

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

env:
  CARGO_TERM_COLOR: always

jobs:
  build-and-test:
    runs-on: ubuntu-latest
    timeout-minutes: 30

    steps:
      - name: Checkout uppsala
        uses: actions/checkout@v4

      - name: Install Rust
        uses: dtolnay/rust-toolchain@stable
        with:
          components: rustfmt

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

      - name: Format check
        run: cargo fmt --all -- --check

      - name: Build
        run: cargo build --verbose

      # Hand-crafted + unit test suites. Runs in seconds.
      - name: Unit and hand-crafted tests
        run: cargo test --lib --test xml_conformance --test namespace_conformance --test xpath_conformance --test xsd_conformance --test serialization_conformance --test range_conformance

      # W3C conformance suites — the full XML test suite (~1 208 tests) and
      # the three XSD test suites (NIST ~19 217, MS ~1 213, Sun ~199). All
      # fully deterministic; split into named steps so the CI log shows
      # per-suite pass counts instead of one opaque aggregate.
      - name: W3C XML conformance
        run: cargo test --test w3c_xmlconf -- --nocapture

      - name: W3C XSD conformance (NIST Datatypes)
        run: cargo test --test w3c_xsts xsts_nist_datatypes -- --nocapture

      - name: W3C XSD conformance (MS DataTypes)
        run: cargo test --test w3c_xsts xsts_ms_datatypes -- --nocapture

      - name: W3C XSD conformance (Sun Combined)
        run: cargo test --test w3c_xsts xsts_sun_combined -- --nocapture