<commit_before>name: ion-test-driver

on: [pull_request]

jobs:
  ion-test-driver:
    runs-on: macos-10.15
    steps:
      - name: Checkout ion-c
        uses: actions/checkout@master
        with:
          repository: amzn/ion-c
          ref: master
          path: ion-c

      - name: Get main branch HEAD sha
        run: cd ion-c && echo "sha=`git rev-parse --short HEAD`" >> $GITHUB_ENV

      - name: Checkout ion-test-driver
        uses: actions/checkout@master
        with:
          repository: amzn/ion-test-driver
          ref: master
          path: ion-test-driver

      - name: Set up python3 env
        run: python3 -m venv ion-test-driver/venv && . ion-test-driver/venv/bin/activate

      - name: Pip install
        run: pip3 install -r ion-test-driver/requirements.txt && pip3 install -e ion-test-driver

      - name: Run ion-test-driver
        run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -o output
          -i ion-c,${{ github.event.pull_request.head.repo.html_url }},${{ github.event.pull_request.head.sha }}

      - name: Upload result
        uses: actions/upload-artifact@v2
        with:<commit_msg>Fixed async main branch change issue for ion-test-driver GitHub Actions.<commit_after>name: ion-test-driver

on: [pull_request]

jobs:
  ion-test-driver:
    runs-on: macos-10.15
    steps:
      - name: Checkout ion-c
        uses: actions/checkout@master
        with:
          repository: amzn/ion-c
          ref: master
          path: ion-c

      - name: Checkout ion-test-driver
        uses: actions/checkout@master
        with:
          repository: amzn/ion-test-driver
          ref: master
          path: ion-test-driver

      - name: Set up python3 env
        run: python3 -m venv ion-test-driver/venv && . ion-test-driver/venv/bin/activate

      - name: Pip install
        run: pip3 install -r ion-test-driver/requirements.txt && pip3 install -e ion-test-driver

      - name: Get main branch HEAD sha
        run: cd ion-c && echo `git rev-parse --short HEAD` && echo "sha=`git rev-parse --short HEAD`" >> $GITHUB_ENV

      - name: Run ion-test-driver
        run: python3 ion-test-driver/amazon/iontest/ion_test_driver.py -o output
          -i ion-c,${{ github.event.pull_request.head.repo.html_url }},${{ github.event.pull_request.head.sha }}

      - name: Upload result
        uses: actions/upload-artifact@v2
        with:
{'fraction_non_alphanumeric': 0.11535269709543569, 'fraction_numerical': 0.008298755186721992, 'mean_word_length': 2.0596446700507616, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 7, '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': '1196445', 'n_tokens_mistral': 802, 'n_tokens_neox': 768, 'n_words': 191}