diff --git a/.github/actions/build_pandas/action.yml b/.github/actions/build_pandas/action.yml new file mode 100644 index 0000000000000..d4777bcd1d079 --- /dev/null +++ b/.github/actions/build_pandas/action.yml @@ -0,0 +1,17 @@ +name: Build pandas +description: Rebuilds the C extensions and installs pandas +runs: + using: composite + steps: + + - name: Environment Detail + run: | + conda info + conda list + shell: bash -l {0} + + - name: Build Pandas + run: | + python setup.py build_ext -j 2 + python -m pip install -e . --no-build-isolation --no-use-pep517 + shell: bash -l {0} diff --git a/.github/actions/setup/action.yml b/.github/actions/setup/action.yml new file mode 100644 index 0000000000000..9ef00e7a85a6f --- /dev/null +++ b/.github/actions/setup/action.yml @@ -0,0 +1,12 @@ +name: Set up pandas +description: Runs all the setup steps required to have a built pandas ready to use +runs: + using: composite + steps: + - name: Setting conda path + run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH + shell: bash -l {0} + + - name: Setup environment and build pandas + run: ci/setup_env.sh + shell: bash -l {0} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b551e7ded0178..961620b54405f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -41,15 +41,8 @@ jobs: environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true - - name: Environment Detail - run: | - conda info - conda list - - name: Build Pandas - run: | - python setup.py build_ext -j 2 - python -m pip install -e . --no-build-isolation --no-use-pep517 + uses: ./.github/actions/build_pandas - name: Linting run: ci/code_checks.sh lint @@ -100,14 +93,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Setting conda path - run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH - - name: Checkout uses: actions/checkout@v1 - - name: Setup environment and build pandas - run: ci/setup_env.sh + - name: Set up pandas + uses: ./.github/actions/setup - name: Build website run: | @@ -144,14 +134,11 @@ jobs: runs-on: ubuntu-latest steps: - - name: Setting conda path - run: echo "${HOME}/miniconda3/bin" >> $GITHUB_PATH - - name: Checkout uses: actions/checkout@v1 - - name: Setup environment and build pandas - run: ci/setup_env.sh + - name: Set up pandas + uses: ./.github/actions/setup - name: Run tests run: | diff --git a/.github/workflows/database.yml b/.github/workflows/database.yml index c2f332cc5454a..f3ccd78266ba6 100644 --- a/.github/workflows/database.yml +++ b/.github/workflows/database.yml @@ -72,15 +72,8 @@ jobs: environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true - - name: Environment Detail - run: | - conda info - conda list - - name: Build Pandas - run: | - python setup.py build_ext -j 2 - python -m pip install -e . --no-build-isolation --no-use-pep517 + uses: ./.github/actions/build_pandas - name: Test run: ci/run_tests.sh @@ -158,15 +151,8 @@ jobs: environment-file: ${{ env.ENV_FILE }} use-only-tar-bz2: true - - name: Environment Detail - run: | - conda info - conda list - - name: Build Pandas - run: | - python setup.py build_ext -j 2 - python -m pip install -e . --no-build-isolation --no-use-pep517 + uses: ./.github/actions/build_pandas - name: Test run: ci/run_tests.sh