<commit_before>name: CI tests

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v2

    - name: Setup
      run: |
        sed -i -e's/- python/- python=${{ matrix.python-version }}/' environment.yml
        cat environment.yml
        # FIXME: #65 - Replace with `make-env`
        ./prepareenv.sh

    - name: Check
      run: |
        ./.github/travis/check_license.sh
        ./.github/travis/check_python_script.sh

    - name: Test
      run: |
        source "$HOME/miniconda/etc/profile.d/conda.sh"
        conda activate yosys-env
        which python
        python --version
        which tox<commit_msg>gha: Split into two jobs.<commit_after>name: CI

on: [push, pull_request]

jobs:
  Checks:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v2
    - name: Licenses
      run: ./.github/travis/check_license.sh
    - name: Python Script Headers
      run: ./.github/travis/check_python_script.sh

  Tests:
    runs-on: ubuntu-latest
    strategy:
      matrix:
        python-version: [3.6, 3.7, 3.8, 3.9]

    steps:
    - uses: actions/checkout@v2

    - name: Setup
      run: |
        sed -i -e's/- python/- python=${{ matrix.python-version }}/' environment.yml
        cat environment.yml
        # FIXME: #65 - Replace with `make-env`
        ./prepareenv.sh

    - name: Test
      run: |
        source "$HOME/miniconda/etc/profile.d/conda.sh"
        conda activate yosys-env
        which python
        python --version
        which tox
{'fraction_non_alphanumeric': 0.12693498452012383, 'fraction_numerical': 0.014241486068111455, 'mean_word_length': 1.8202443280977312, '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': '5796779', 'n_tokens_mistral': 581, 'n_tokens_neox': 547, 'n_words': 127}