<commit_before>name: sdist

on:
  push:
    branches:
      - master
      - 1.3.x
  pull_request:
    branches:
      - master
      - 1.3.x
    paths-ignore:
      - "doc/**"

jobs:
  build:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    defaults:
      run:
        shell: bash -l {0}

    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.8", "3.9", "3.10"]
    concurrency:
      group: ${{github.ref}}-${{matrix.python-version}}-sdist
      cancel-in-progress: ${{github.event_name == 'pull_request'}}

    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel

        # GH 39416
        pip install numpy

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

    - uses: conda-incubator/setup-miniconda@v2
      with:
        activate-environment: pandas-sdist
        python-version: '${{ matrix.python-version }}'

    - name: Install pandas from sdist
      run: |
        pip list
        python -m pip install dist/*.gz

    - name: Force oldest supported NumPy
      run: |
        case "${{matrix.python-version}}" in
        3.8)
          pip install numpy==1.18.5 ;;
        3.9)
          pip install numpy==1.19.3 ;;
        3.10)
          pip install numpy==1.21.2 ;;
        esac

    - name: Import pandas
      run: |
        cd ..
        conda list
        python -c "import pandas; pandas.show_versions();"<commit_msg>CI: Use conda-forge to create Python 3.10 env (#44388)<commit_after>name: sdist

on:
  push:
    branches:
      - master
      - 1.3.x
  pull_request:
    branches:
      - master
      - 1.3.x
    paths-ignore:
      - "doc/**"

jobs:
  build:
    runs-on: ubuntu-latest
    timeout-minutes: 60
    defaults:
      run:
        shell: bash -l {0}

    strategy:
      fail-fast: false
      matrix:
        python-version: ["3.8", "3.9", "3.10"]
    concurrency:
      group: ${{github.ref}}-${{matrix.python-version}}-sdist
      cancel-in-progress: ${{github.event_name == 'pull_request'}}

    steps:
    - uses: actions/checkout@v2
      with:
        fetch-depth: 0

    - name: Set up Python
      uses: actions/setup-python@v2
      with:
        python-version: ${{ matrix.python-version }}

    - name: Install dependencies
      run: |
        python -m pip install --upgrade pip setuptools wheel

        # GH 39416
        pip install numpy

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

    - uses: conda-incubator/setup-miniconda@v2
      with:
        activate-environment: pandas-sdist
        channels: conda-forge
        python-version: '${{ matrix.python-version }}'

    - name: Install pandas from sdist
      run: |
        pip list
        python -m pip install dist/*.gz

    - name: Force oldest supported NumPy
      run: |
        case "${{matrix.python-version}}" in
        3.8)
          pip install numpy==1.18.5 ;;
        3.9)
          pip install numpy==1.19.3 ;;
        3.10)
          pip install numpy==1.21.2 ;;
        esac

    - name: Import pandas
      run: |
        cd ..
        conda list
        python -c "import pandas; pandas.show_versions();"
{'fraction_non_alphanumeric': 0.12228339611706751, 'fraction_numerical': 0.026658939437844104, 'mean_word_length': 1.6676970633693973, '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': '3920626', 'n_tokens_mistral': 1186, 'n_tokens_neox': 1092, 'n_words': 281}