diff --git a/.circleci/config.yml b/.circleci/config.yml index 4c378b3f..e008054c 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -7,7 +7,7 @@ jobs: # Conda "conda-3.7": docker: - - image: continuumio/miniconda3 + - image: mambaorg/micromamba environment: PYTHON: "3.7" PANDAS: "0.24.2" @@ -15,12 +15,12 @@ jobs: - checkout - run: ci/config_auth.sh - run: ci/run_conda.sh - "conda-3.9-NIGHTLY": + "conda-3.9": docker: - - image: continuumio/miniconda3 + - image: mambaorg/micromamba environment: PYTHON: "3.9" - PANDAS: "NIGHTLY" + PANDAS: "1.3.4" steps: - checkout - run: ci/config_auth.sh @@ -31,4 +31,4 @@ workflows: build: jobs: - "conda-3.7" - - "conda-3.9-NIGHTLY" + - "conda-3.9" diff --git a/ci/requirements-3.9-NIGHTLY.conda b/ci/requirements-3.9-1.3.4.conda similarity index 86% rename from ci/requirements-3.9-NIGHTLY.conda rename to ci/requirements-3.9-1.3.4.conda index 5a3e9fb7..73595253 100644 --- a/ci/requirements-3.9-NIGHTLY.conda +++ b/ci/requirements-3.9-1.3.4.conda @@ -1,10 +1,13 @@ +codecov +coverage db-dtypes -pydata-google-auth +fastavro +flake8 google-cloud-bigquery google-cloud-bigquery-storage +numpy pyarrow +pydata-google-auth pytest pytest-cov -codecov -coverage -flake8 +tqdm diff --git a/ci/run_conda.sh b/ci/run_conda.sh index e29da98a..11b5b569 100755 --- a/ci/run_conda.sh +++ b/ci/run_conda.sh @@ -6,25 +6,16 @@ set -e -x DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )" -# Install dependencies using Conda +eval "$(micromamba shell hook --shell=bash)" +micromamba activate -conda config --set always_yes yes --set changeps1 no -conda config --add channels pandas -conda config --add channels conda-forge -conda update -q conda -conda info -a -conda create -q -n test-environment python=$PYTHON -source activate test-environment +# Install dependencies using (micro)mamba +# https://github.com/mamba-org/micromamba-docker REQ="ci/requirements-${PYTHON}-${PANDAS}" -conda install -q --file "$REQ.conda"; - -if [[ "$PANDAS" == "NIGHTLY" ]]; then - conda install -q numpy pytz python-dateutil; - PRE_WHEELS="https://7933911d6844c6c53a7d-47bd50c35cd79bd838daf386af554a83.ssl.cf2.rackcdn.com"; - pip install --pre --upgrade --timeout=60 -f $PRE_WHEELS pandas; -else - conda install -q pandas=$PANDAS; -fi +micromamba install -q pandas=$PANDAS python=${PYTHON} -c conda-forge; +micromamba install -q --file "$REQ.conda" -c conda-forge; +micromamba list +micromamba info python setup.py develop --no-deps