<commit_before>name: regression-tests
on: [push, pull_request]
jobs:
  scraper-regression-tests:
    runs-on: ubuntu-latest
    services:
      redis:
        image: redis
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 6379:6379
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.5.3
      - name: Install dependencies
        run: bundle install
      - name: API (non-search) tests
        run: bundle exec "rspec spec tests/ --exclude-pattern tests/**/search_spec.rb"
      - name: Search API tests<commit_msg>Passing secret test cookie into test run<commit_after>name: regression-tests
on: [push, pull_request]
jobs:
  scraper-regression-tests:
    runs-on: ubuntu-latest
    services:
      redis:
        image: redis
        options: >-
          --health-cmd "redis-cli ping"
          --health-interval 10s
          --health-timeout 5s
          --health-retries 5
        ports:
          - 6379:6379
    steps:
      - uses: actions/checkout@v2
      - name: Set up Ruby
        uses: ruby/setup-ruby@v1
        with:
          ruby-version: 2.5.3
      - name: Install dependencies
        run: bundle install
      - name: API (non-search) tests
        env:
          TEST_COOKIE: ${{ secrets.TEST_COOKIE}}
        run: bundle exec "rspec spec tests/ --exclude-pattern tests/**/search_spec.rb"
      - name: Search API tests
        env:
          TEST_COOKIE: ${{ secrets.TEST_COOKIE}}
{'fraction_non_alphanumeric': 0.10584615384615384, 'fraction_numerical': 0.020923076923076923, 'mean_word_length': 1.7419898819561552, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, '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': '2256175', 'n_tokens_mistral': 538, 'n_tokens_neox': 501, 'n_words': 129}