<commit_before>name: Ctypes

on:
  - pull_request
  - push
  - workflow_dispatch

jobs:
  tests:
    name: Tests

    strategy:
      fail-fast: false
      matrix:
        os:
          - macos-latest
          - ubuntu-latest
          - windows-latest
        ocaml-version:
          - 4.09.0
          - 4.10.0

    runs-on: ${{ matrix.os }}

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Use OCaml ${{ matrix.ocaml-version }}
        uses: avsm/setup-ocaml@v1
        with:
          ocaml-version: ${{ matrix.ocaml-version }}

      - name: Deps
        run: |
          opam pin add -n ctypes.dev .
          opam pin add -n ctypes-foreign.dev .
          opam depext -ty ctypes ctypes-foreign
          opam install -t --deps-only .

      - name: Build
        run: opam exec -- make<commit_msg>Add a full range of OCaml versions to the CI matrix.<commit_after>name: Ctypes

on:
  - pull_request
  - push
  - workflow_dispatch

jobs:
  tests:
    name: Tests

    strategy:
      fail-fast: false
      matrix:
        include:
          - os: ubuntu-latest
            ocaml-version: 4.02.3
          - os: ubuntu-latest
            ocaml-version: 4.03.0
          - os: ubuntu-latest
            ocaml-version: 4.04.0
          - os: ubuntu-latest
            ocaml-version: 4.05.0
          - os: ubuntu-latest
            ocaml-version: 4.06.0
          - os: ubuntu-latest
            ocaml-version: 4.07.0
          - os: ubuntu-latest
            ocaml-version: 4.08.0
          - os: ubuntu-latest
            ocaml-version: 4.09.0
          - os: ubuntu-latest
            ocaml-version: 4.10.0+flambda
          - os: ubuntu-latest
            ocaml-version: 4.11.1
          - os: ubuntu-latest
            ocaml-version: 4.12.0
          - os: windows-latest
            ocaml-version: 4.11.1
          - os: windows-latest
            ocaml-version: 4.12.0
          - os: macos-latest
            ocaml-version: 4.11.1
          - os: macos-latest
            ocaml-version: 4.12.0

    runs-on: ${{ matrix.os }}

    steps:
      - name: Checkout code
        uses: actions/checkout@v2

      - name: Use OCaml ${{ matrix.ocaml-version }}
        uses: avsm/setup-ocaml@v1
        with:
          ocaml-version: ${{ matrix.ocaml-version }}

      - name: Deps
        run: |
          opam pin add -n ctypes.dev .
          opam pin add -n ctypes-foreign.dev .
          opam depext -ty ctypes ctypes-foreign
          opam install -t --deps-only .

      - name: Build
        run: opam exec -- make
{'fraction_non_alphanumeric': 0.10634982469809116, 'fraction_numerical': 0.028048305414881184, 'mean_word_length': 1.2765957446808511, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, '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': '5687392', 'n_tokens_mistral': 925, 'n_tokens_neox': 825, 'n_words': 195}