<commit_before>name: CI

on:
  push:
  pull_request:
  schedule: [cron: "40 1 * * *"]

jobs:
  test:
    name: ${{matrix.name || format('Rust {0}', matrix.rust)}}
    runs-on: ${{matrix.os || 'ubuntu'}}-latest
    strategy:
      fail-fast: false
      matrix:
        rust: [beta, stable, 1.45.0, 1.42.0, 1.34.0, 1.31.0]
        include:
          - rust: nightly
          - rust: nightly
            name: Windows
            os: windows
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{matrix.rust}}
      - if: matrix.rust == '1.31.0' || matrix.rust == '1.34.0'
        run: echo 'extern crate proc_macro;' >> demo-hack-impl/src/lib.rs
      - run: cargo run --manifest-path example/Cargo.toml
      - if: matrix.rust != '1.31.0'
        run: cargo test --all

  clippy:
    name: Clippy
    runs-on: ubuntu-latest
    if: github.event_name != 'pull_request'
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/rust-toolchain@clippy
      - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

  outdated:
    name: Outdated
    runs-on: ubuntu-latest
    if: github.event_name != 'pull_request'
    steps:
      - uses: actions/checkout@v2
      - run: cargo outdated --exit-code 1<commit_msg>Install newest build of cargo-outdated<commit_after>name: CI

on:
  push:
  pull_request:
  schedule: [cron: "40 1 * * *"]

jobs:
  test:
    name: ${{matrix.name || format('Rust {0}', matrix.rust)}}
    runs-on: ${{matrix.os || 'ubuntu'}}-latest
    strategy:
      fail-fast: false
      matrix:
        rust: [beta, stable, 1.45.0, 1.42.0, 1.34.0, 1.31.0]
        include:
          - rust: nightly
          - rust: nightly
            name: Windows
            os: windows
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/rust-toolchain@master
        with:
          toolchain: ${{matrix.rust}}
      - if: matrix.rust == '1.31.0' || matrix.rust == '1.34.0'
        run: echo 'extern crate proc_macro;' >> demo-hack-impl/src/lib.rs
      - run: cargo run --manifest-path example/Cargo.toml
      - if: matrix.rust != '1.31.0'
        run: cargo test --all

  clippy:
    name: Clippy
    runs-on: ubuntu-latest
    if: github.event_name != 'pull_request'
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/rust-toolchain@clippy
      - run: cargo clippy --tests -- -Dclippy::all -Dclippy::pedantic

  outdated:
    name: Outdated
    runs-on: ubuntu-latest
    if: github.event_name != 'pull_request'
    steps:
      - uses: actions/checkout@v2
      - uses: dtolnay/install@cargo-outdated
      - run: cargo outdated --exit-code 1
{'fraction_non_alphanumeric': 0.1480927449513837, 'fraction_numerical': 0.02692595362752431, 'mean_word_length': 2.0536529680365296, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '3272890', 'n_tokens_mistral': 1009, 'n_tokens_neox': 943, 'n_words': 215}