<commit_before>name: Compile and Test on Linux

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build-linux:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install zimg
      run: |
        git clone https://github.com/sekrit-twc/zimg --branch v2.9 --depth 1 ./zimg
        pushd ./zimg
        ./autogen.sh
        ./configure --prefix=/usr/
        make
        sudo make install
        popd
        rm -rf ./zimg
    - name: Setup Python
      uses: actions/setup-python@v2
      with:
        # Version range or exact version of a Python version to use, using SemVer's version range syntax.
        python-version: 3.8
    - name: Install build dependencies
      run: pip install cython
    - name: Set neccessary environment variables
      run: |
        PYTHON_BASE_DIR=$(command -v python | xargs dirname)/..
        echo "::set-env=\"name=LD_LIBRARY_PATH::$LD_LIBRARY_PATH:$PYTHON_BASE_DIR/lib\""
        echo "::set-env=\"name=LIBRARY_PATH::$LIBRARY_PATH:$PYTHON_BASE_DIR/lib\""
        echo "::set-env=\"name=PKG_CONFIG_PATH::$PYTHON_BASE_DIR/lib/pkgconfig\""
    - name: configure
      run: |
        ./autogen.sh
        ./configure --prefix=/usr/
    - name: make
      run: |
        make
    - name: make check
      run: make check
    - name: sudo make install
      run: |
        sudo make install
        pip install .
    - run: python -m unittest discover -s ./test/<commit_msg>Do single-Env args work?<commit_after>name: Compile and Test on Linux

on:
  push:
    branches: [ master ]
  pull_request:
    branches: [ master ]

jobs:
  build-linux:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v2
    - name: Install zimg
      run: |
        git clone https://github.com/sekrit-twc/zimg --branch v2.9 --depth 1 ./zimg
        pushd ./zimg
        ./autogen.sh
        ./configure --prefix=/usr/
        make
        sudo make install
        popd
        rm -rf ./zimg
    - name: Setup Python
      uses: actions/setup-python@v2
      with:
        # Version range or exact version of a Python version to use, using SemVer's version range syntax.
        python-version: 3.8
    - name: Install build dependencies
      run: pip install cython
    - name: Set neccessary environment variables
      run: |
        echo "::set-env=\"name=PYTHON_BASE_PATH::$(command -v python | xargs dirname)/..\""
    - name: configure
      run: |
        ./autogen.sh
        LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PYTHON_BASE_PATH/lib LIBRARY_PATH=$LIBRARY_PATH:$PYTHON_BASE_PATH/lib PKG_CONFIG_PATH=$PYTHON_BASE_PATH/lib/pkgconfig ./configure --prefix=/usr/
    - name: make
      run: |
        LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$PYTHON_BASE_PATH/lib LIBRARY_PATH=$LIBRARY_PATH:$PYTHON_BASE_PATH/lib PKG_CONFIG_PATH=$PYTHON_BASE_PATH/lib/pkgconfig make
    - name: make check
      run: make check
    - name: sudo make install
      run: |
        sudo make install
        pip install .
    - run: python -m unittest discover -s ./test/
{'fraction_non_alphanumeric': 0.10888816005247622, 'fraction_numerical': 0.0045916693998032145, 'mean_word_length': 2.125, 'pattern_counts': {'":': 4, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 2, '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': '3682184', 'n_tokens_mistral': 1022, 'n_tokens_neox': 982, 'n_words': 257}