<commit_before>name: main

on:
  push:
    branches:
      - master
      - st4000-exploration
  pull_request:
    branches:
      - master
      - st4000-exploration

env:
  CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
  SUBLIME_TEXT_VERSION: "3"
  SUBLIME_TEXT_ARCH: x64
  PACKAGE: LSP

jobs:
  macOS:
    runs-on: macos-latest
    if: github.ref == 'refs/heads/master' || github.base_ref == 'master'
    steps:
      - run: echo ::add-path::$HOME/.local/bin
      - run: echo ::add-path::$HOME/Library/Python/3.7/bin
      - uses: actions/checkout@v1
      - run: python3 tests/server.py --version
      - run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
      - run: curl --silent https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/ci.sh --output ci.sh
      - run: |
          sh ci.sh bootstrap
          sh ci.sh install_package_control
          subl --stay &
          sleep 8
          sh ci.sh run_tests --coverage
        name: Run UnitTesting tests
      - run: |
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov

  Linux:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master' || github.base_ref == 'master'
    container: sublimetext/unittesting
    steps:
      - uses: actions/checkout@v1
      - run: echo ::add-path::$HOME/.local/bin
      - run: sudo apt update
      - run: sudo apt install --no-install-recommends -y x11-xserver-utils python3-pip
      - run: sh -e /etc/init.d/xvfb start
      - run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
      - run: python3 tests/server.py --version
      - run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
      - run: |
          PATH="$HOME/.local/bin:$PATH"
          sh github.sh bootstrap
          sh github.sh install_package_control
          sh github.sh run_tests --coverage
        name: Run UnitTesting tests
      - run: |
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov

  Lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - run: echo ::add-path::$HOME/.local/bin
      - run: sudo apt update
      - run: sudo apt install --no-install-recommends -y x11-xserver-utils python3-pip
      - run: pip3 install mypy==0.750 flake8==3.7.9 yapf==0.29.0 --user
      - run: mypy -p plugin
      - run: flake8 plugin tests
      - run: yapf --diff plugin/core/main.py
<commit_msg>Fix CI error due to use of ::add-path::<commit_after>name: main

on:
  push:
    branches:
      - master
      - st4000-exploration
  pull_request:
    branches:
      - master
      - st4000-exploration

env:
  CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
  SUBLIME_TEXT_VERSION: "3"
  SUBLIME_TEXT_ARCH: x64
  PACKAGE: LSP

jobs:
  macOS:
    runs-on: macos-latest
    if: github.ref == 'refs/heads/master' || github.base_ref == 'master'
    steps:
      - uses: actions/checkout@v1
      - run: echo "$HOME/.local/bin" >> $GITHUB_PATH
      - run: echo "$HOME/Library/Python/3.7/bin" >> $GITHUB_PATH
      - run: python3 tests/server.py --version
      - run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
      - run: curl --silent https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/ci.sh --output ci.sh
      - run: |
          sh ci.sh bootstrap
          sh ci.sh install_package_control
          subl --stay &
          sleep 8
          sh ci.sh run_tests --coverage
        name: Run UnitTesting tests
      - run: |
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov

  Linux:
    runs-on: ubuntu-latest
    if: github.ref == 'refs/heads/master' || github.base_ref == 'master'
    container: sublimetext/unittesting
    steps:
      - uses: actions/checkout@v1
      - run: sudo apt update
      - run: sudo apt install --no-install-recommends -y x11-xserver-utils python3-pip
      - run: sh -e /etc/init.d/xvfb start
      - run: curl -OL https://raw.githubusercontent.com/SublimeText/UnitTesting/master/sbin/github.sh
      - run: echo "$HOME/.local/bin" >> $GITHUB_PATH
      - run: python3 tests/server.py --version
      - run: python3 tests/adjust_unittesting_config_for_ci.py && cat unittesting.json
      - run: |
          PATH="$HOME/.local/bin:$PATH"
          sh github.sh bootstrap
          sh github.sh install_package_control
          sh github.sh run_tests --coverage
        name: Run UnitTesting tests
      - run: |
          pip3 install coverage==4.5.4 codecov==2.0.15
          codecov

  Lint:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v1
      - uses: actions/setup-python@v2
        with:
          python-version: '3.8'
      - run: sudo apt update
      - run: sudo apt install --no-install-recommends -y x11-xserver-utils
      - run: pip3 install mypy==0.790 flake8==3.8.3 yapf==0.30.0 --user
      - run: echo "$HOME/.local/bin" >> $GITHUB_PATH
      - run: mypy -p plugin
      - run: flake8 plugin tests
      - run: yapf --diff plugin/core/main.py

{'fraction_non_alphanumeric': 0.12238038750494266, 'fraction_numerical': 0.022933965994464216, 'mean_word_length': 2.118988902589396, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 11, 'https://': 4, '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': '3712429', 'n_tokens_mistral': 1811, 'n_tokens_neox': 1735, 'n_words': 387}