<commit_before>name: sw

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [windows-latest, ubuntu-20.04, macOS-latest]

    steps:
    - uses: actions/checkout@v1
    - uses: egorpugin/sw-action@master

    - name: build
      if: matrix.os == 'windows-latest'
      run: ./sw -static -shared -platform x86,x64 -config d,r build

    - name: build
      if: matrix.os != 'windows-latest'
      run: ./sw -static -shared -config d,r build -Dwith-tests=1<commit_msg>[ci][github] Run tests on linux and macos.<commit_after>name: sw

on: [push, pull_request]

jobs:
  build:
    runs-on: ${{ matrix.os }}
    strategy:
      fail-fast: false
      matrix:
        os: [windows-latest, ubuntu-20.04, macOS-latest]

    steps:
    - uses: actions/checkout@v2
    - uses: egorpugin/sw-action@master

    - name: build
      if: matrix.os == 'windows-latest'
      run: ./sw -static -shared -platform x86,x64 -config d,r build

    - name: build
      if: matrix.os != 'windows-latest'
      run: ./sw -static -shared -config d,r build -Dwith-tests=1

    - name: test
      if: matrix.os != 'windows-latest'
      run:
        - git clone https://github.com/egorpugin/tessdata tessdata_unittest
        - ./sw -static -shared -config d,r test -Dwith-tests=1 -Dskip-tests=lstm.*

    - name: Publish Unit Test Results
      if: matrix.os != 'windows-latest'
      uses: EnricoMi/publish-unit-test-result-action@v1.6
      with:
        check_name: Unit Test Results
        github_token: ${{ secrets.GITHUB_TOKEN }}
        files: .sw/test/results.xml
{'fraction_non_alphanumeric': 0.1375921375921376, 'fraction_numerical': 0.014127764127764128, 'mean_word_length': 2.2645290581162323, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 1}, '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': '2324873', 'n_tokens_mistral': 584, 'n_tokens_neox': 560, 'n_words': 140}