Bump camel-converter from 5.1.0 to 5.1.1 #1591
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Testing | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| env: | |
| CARGO_TERM_COLOR: always | |
| RUST_BACKTRACE: 1 | |
| RUSTFLAGS: "-D warnings" | |
| PYTHON_VERSION: "3.10" | |
| jobs: | |
| clippy: | |
| name: Clippy | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.9.2 | |
| - name: Run cargo clippy | |
| run: cargo clippy --workspace --all-targets --all-features -- --deny warnings | |
| - name: Run cargo clippy without the python feature | |
| run: cargo clippy -p prelude-xml-parser --all-targets -- --deny warnings | |
| fmt: | |
| name: Rustfmt | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.9.2 | |
| - name: Run cargo fmt | |
| run: cargo fmt --all -- --check | |
| rust-test: | |
| name: Rust tests | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| env: | |
| CI: true | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.9.2 | |
| - name: Run cargo test | |
| run: cargo test -p prelude-xml-parser --locked | |
| bench: | |
| name: Benchmark smoke test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install Rust | |
| run: | | |
| curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh -s -- -y | |
| - name: Cache dependencies | |
| uses: Swatinem/rust-cache@v2.9.2 | |
| - name: Run benchmarks in test mode | |
| run: cargo bench -p prelude-xml-parser --locked -- --test | |
| python-linting: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: install Just | |
| uses: taiki-e/install-action@just | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ env.PYTHON_VERSION }} | |
| - name: Install dependencies | |
| run: | | |
| uv sync --frozen --all-extras | |
| uv run maturin build | |
| - name: pyrefly check | |
| run: just pyrefly | |
| prek: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: j178/prek-action@v3.0.0 | |
| env: | |
| PREK_SKIP: no-commit-to-branch,pyrefly-check | |
| test: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15-dev"] | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Install uv | |
| uses: astral-sh/setup-uv@v7 | |
| with: | |
| enable-cache: true | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v7 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| allow-prereleases: true | |
| - name: Install dependencies | |
| run: | | |
| uv sync --frozen --all-extras | |
| uv run maturin build | |
| - name: Run tests | |
| run: uv run pytest --cov=prelude_parser --cov-report=xml | |
| - name: Upload coverage | |
| uses: codecov/codecov-action@v7.0.0 | |
| env: | |
| CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} | |
| with: | |
| fail_ci_if_error: true |