<commit_before>name: Deploy sdist/wheels

on: [push, pull_request]


jobs:
  deploy:
    runs-on: macos-latest
    env:
      CIBW_BUILD_VERBOSITY: 3
      CIBW_BUILD: cp3{6,7,8,9,10}-*
      CIBW_ARCHS: "x86_64 universal2 arm64"
      CIBW_TEST_COMMAND: python -c "from pyobjus import autoclass, objc_str"
      CIBW_TEST_SKIP: "*arm64*"
    steps:
    - uses: actions/checkout@v2

    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: '3.x'

    - name: Install dependencies
      run: python -m pip install --upgrade twine cibuildwheel cython

    - name: Build sdist
      run: |
        python setup.py sdist --formats=gztar

    - name: Build wheels
      run: |
        python -m cibuildwheel --output-dir dist

    - name: Create artifacts
      uses: actions/upload-artifact@v1
      with:
        name: wheels
        path: dist

    - name: Upload to GitHub Releases
      if: startsWith(github.ref, 'refs/tags/')
      uses: softprops/action-gh-release@v0.1.5
      env:
        GITHUB_TOKEN: ${{ secrets.RELEASE_GITHUB }}
      with:
        files: dist/*
        draft: false

    - name: Publish to PyPI<commit_msg>Fix github release token. (#86)<commit_after>name: Deploy sdist/wheels

on: [push, pull_request]


jobs:
  deploy:
    runs-on: macos-latest
    env:
      CIBW_BUILD_VERBOSITY: 3
      CIBW_BUILD: cp3{6,7,8,9,10}-*
      CIBW_ARCHS: "x86_64 universal2 arm64"
      CIBW_TEST_COMMAND: python -c "from pyobjus import autoclass, objc_str"
      CIBW_TEST_SKIP: "*arm64*"
    steps:
    - uses: actions/checkout@v2

    - name: Set up Python
      uses: actions/setup-python@v1
      with:
        python-version: '3.x'

    - name: Install dependencies
      run: python -m pip install --upgrade twine cibuildwheel cython

    - name: Build sdist
      run: |
        python setup.py sdist --formats=gztar

    - name: Build wheels
      run: |
        python -m cibuildwheel --output-dir dist

    - name: Create artifacts
      uses: actions/upload-artifact@v1
      with:
        name: wheels
        path: dist

    - name: Upload to GitHub Releases
      if: startsWith(github.ref, 'refs/tags/')
      uses: softprops/action-gh-release@v0.1.14
      env:
        GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
      with:
        files: dist/*

    - name: Publish to PyPI
{'fraction_non_alphanumeric': 0.10281569965870307, 'fraction_numerical': 0.021757679180887373, 'mean_word_length': 2.1948228882833787, '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': '3922478', 'n_tokens_mistral': 860, 'n_tokens_neox': 816, 'n_words': 205}