<commit_before>name: Test Suite

on: [push, pull_request]

jobs:
  test_suite:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    
    - name: Run test suite
      run: |
        cp azuracast.sample.env azuracast.env
        cp docker-compose.testing.yml docker-compose.override.yml
        chmod 777 tests/_output/
        docker-compose build web
        docker-compose run --user="azuracast" --rm web azuracast_install
        docker-compose run --user="azuracast" --rm web composer test

    - name: Echo test output directory
      if: failure()
      run: |
        cat tests/_output/*.html
<commit_msg>(GH Actions) also add in original DC file.<commit_after>name: Test Suite

on: [push, pull_request]

jobs:
  test_suite:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v1
      with:
        fetch-depth: 1
    
    - name: Run test suite
      run: |
        cp azuracast.sample.env azuracast.env
        cp docker-compose.sample.yml docker-compose.yml
        cp docker-compose.testing.yml docker-compose.override.yml
        chmod 777 tests/_output/
        docker-compose build web
        docker-compose run --user="azuracast" --rm web azuracast_install
        docker-compose run --user="azuracast" --rm web composer test

    - name: Echo test output directory
      if: failure()
      run: |
        cat tests/_output/*.html

{'fraction_non_alphanumeric': 0.09584214235377025, 'fraction_numerical': 0.007047216349541931, 'mean_word_length': 2.1767337807606264, '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': '221064', 'n_tokens_mistral': 486, 'n_tokens_neox': 449, 'n_words': 122}