diff --git a/.github/workflows/code-checks.yml b/.github/workflows/code-checks.yml index 8a74ae14404b3..58bef05940af1 100644 --- a/.github/workflows/code-checks.yml +++ b/.github/workflows/code-checks.yml @@ -156,3 +156,27 @@ jobs: name: Benchmarks log path: asv_bench/benchmarks.log if: failure() + + build_docker_dev_environment: + name: Build Docker Dev Environment + runs-on: ubuntu-latest + defaults: + run: + shell: bash -l {0} + + concurrency: + # https://github.community/t/concurrecy-not-work-for-push/183068/7 + group: ${{ github.event_name == 'push' && github.run_number || github.ref }}-build_docker_dev_environment + cancel-in-progress: true + + steps: + - name: Clean up dangling images + run: docker image prune -f + + - name: Checkout + uses: actions/checkout@v2 + with: + fetch-depth: 0 + + - name: Build image + run: docker build --pull --no-cache --tag pandas-dev-env . diff --git a/Dockerfile b/Dockerfile index 8887e80566772..2923cd60cc53b 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM quay.io/condaforge/miniforge3 +FROM quay.io/condaforge/miniforge3:4.11.0-0 # if you forked pandas, you can pass in your own GitHub username to use your fork # i.e. gh_username=myname @@ -45,4 +45,4 @@ RUN . /opt/conda/etc/profile.d/conda.sh \ && cd "$pandas_home" \ && export \ && python setup.py build_ext -j 4 \ - && python -m pip install -e . + && python -m pip install --no-build-isolation -e .