diff --git a/.github/workflows/ci-tests.yml b/.github/workflows/ci-tests.yml index 13aacaa5e..8fda1985b 100644 --- a/.github/workflows/ci-tests.yml +++ b/.github/workflows/ci-tests.yml @@ -114,20 +114,20 @@ jobs: steps: - uses: actions/checkout@v3 - - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v4 - with: - python-version: ${{ matrix.python-version }} - - # - name: Cache conda - # uses: actions/cache@v3 - # env: - # # Increase this value to reset cache if etc/environment.yml has not changed - # CACHE_NUMBER: 2 + # - name: Set up Python ${{ matrix.python-version }} + # uses: actions/setup-python@v4 # with: - # path: ~/conda_pkgs_dir - # key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} - # id: cache + # python-version: ${{ matrix.python-version }} + + - name: Cache conda + uses: actions/cache@v3 + env: + # Increase this value to reset cache if etc/environment.yml has not changed + CACHE_NUMBER: 2 + with: + path: ~/conda_pkgs_dir + key: ${{ runner.os }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }} + id: cache - name: Cache pip uses: actions/cache@v3 @@ -137,17 +137,17 @@ jobs: restore-keys: | ${{ runner.os }}-pip- - # - uses: conda-incubator/setup-miniconda@v2 - # with: - # auto-update-conda: true - # python-version: ${{ matrix.python-version }} - # miniforge-version: latest - # miniforge-variant: Mambaforge - # use-mamba: true - # activate-environment: pandera-dev - # channels: conda-forge - # channel-priority: true - # use-only-tar-bz2: true + - uses: conda-incubator/setup-miniconda@v2 + with: + auto-update-conda: true + python-version: ${{ matrix.python-version }} + miniforge-version: latest + miniforge-variant: Mambaforge + use-mamba: true + activate-environment: pandera-dev + channels: conda-forge + channel-priority: true + use-only-tar-bz2: true - name: Install deps run: pip install -r ci/requirements-py${{ matrix.python-version }}-pandas${{ matrix.pandas-version }}-pydantic${{ matrix.pydantic-version }}.txt