Skip to content

Commit

Permalink
CI: Setup Conda Cache in CI (#638)
Browse files Browse the repository at this point in the history
* CI: Setup Conda Cache in CI

* Trigger Build to verify Cache
  • Loading branch information
Smit-create committed Nov 22, 2022
1 parent ad05524 commit 1edd6b2
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,22 @@ jobs:
with:
fetch-depth: 0

- name: Cache conda
uses: actions/cache@v2
env:
CACHE_NUMBER: 0
with:
path: ~/conda_pkgs_dir
key:
${{ runner.os }}-${{ matrix.python-version }}-conda-${{ env.CACHE_NUMBER }}-${{ hashFiles('environment.yml') }}

- uses: conda-incubator/setup-miniconda@v2
with:
auto-update-conda: true
environment-file: environment.yml
python-version: ${{ matrix.python-version }}
auto-activate-base: false
use-only-tar-bz2: true

- name: Conda info
shell: bash -l {0}
Expand Down Expand Up @@ -85,4 +95,4 @@ jobs:
flit publish
env:
FLIT_USERNAME: __token__
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}
FLIT_PASSWORD: ${{ secrets.PYPI_TOKEN }}

0 comments on commit 1edd6b2

Please sign in to comment.