<commit_before>name: RunTests

on:
  pull_request:
    types:
      - '*'
  push:
    branches:
      - main
      - master
  schedule:
    # Every week: https://crontab.guru/#0_0_*_*_0
    - cron: '0 0 * * 0'

jobs:
  run_tests:
    strategy:
      fail-fast: false
      matrix:
        os:
          - 'ubuntu-latest'
        emacs_version:
          - 'snapshot'
          - '27.2'
          - '26.3'
          - '25.3'
    # runs-on: ubuntu-latest
    runs-on: ${{ matrix.os }}
    # continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}
    steps:
      - uses: actions/checkout@v2
      - uses: purcell/setup-emacs@master
        with:
          version: ${{ matrix.emacs_version }}
      - name: Run tests
        run: |
          make test
      - name: Test HTML export
        run: |
          make html<commit_msg>Disable 'make test' on GHA<commit_after>name: RunTests

on:
  pull_request:
    types:
      - '*'
  push:
    branches:
      - main
      - master
  schedule:
    # Every week: https://crontab.guru/#0_0_*_*_0
    - cron: '0 0 * * 0'

jobs:
  run_tests:
    strategy:
      fail-fast: false
      matrix:
        os:
          - 'ubuntu-latest'
        emacs_version:
          - 'snapshot'
          - '27.2'
          - '26.3'
          - '25.3'
    # runs-on: ubuntu-latest
    runs-on: ${{ matrix.os }}
    # continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}
    steps:
      - uses: actions/checkout@v2
      - uses: purcell/setup-emacs@master
        with:
          version: ${{ matrix.emacs_version }}
      # Tue Feb 15 21:45:51 EST 2022 - kmodi
      # Do not run tests for now; they fail on GHA with this error:
      # https://github.com/kaushalmodi/eless/pull/41#issuecomment-1041014256
      # - name: Run tests
      #   run: |
      #     make test
      - name: Test HTML export
        run: |
          make html
{'fraction_non_alphanumeric': 0.13066666666666665, 'fraction_numerical': 0.029866666666666666, 'mean_word_length': 1.548913043478261, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 3, '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': '3069953', 'n_tokens_mistral': 686, 'n_tokens_neox': 647, 'n_words': 140}